Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
admin:the_log [2017/08/08 00:56] – [The log] rozanna | admin:the_log [2023/01/24 09:53] (current) – Gary Willetts | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{indexmenu_n> | + | {{indexmenu_n> |
- | =====The log ===== | + | ====== 25.19. |
+ | The log contains records of who did what and when in the system. It's a useful place to look to find out what happened to certain records and when certain things were done. Some events (lots!) are always logged by mSupply but some are optional and are chosen in the //Log// tab of the [[preferences: | ||
+ | To view the log, choose //View log...// from the //Special// menu. You will be shown all today' | ||
- | The log contains records of who did what and when in the system. It's a useful place to look to find out what happened to certain records and when certain things were done. To view the log choose //View log// from the //Admin// menu. You will be asked how many days history to view (the default is 7 days) | + | {{ : |
- | It displays a list of significant events, along with the date, the time and the user. Some events are always logged by mSupply but others can be chosen in the [[preferences: | + | The columns contain this information: |
- | + | * **Date: | |
- | {{ :admin:view_log.png?600 |}} | + | * **Time: |
+ | * **User:** the name of the user who did the operation giving rise to the log entry. | ||
+ | * **Type:** the type of log entry. Can be used for filtering or just telling you which part of the system generated | ||
+ | * **Event:** a description of the event that occurred. | ||
+ | * **Source table:** the name of the table that contains the affected record (if there is one). | ||
+ | * **Record ID:** if there was one, the ID of the record in the database that was affected by the event. | ||
+ | * **Extra information: | ||
+ | * **Store name:** the name of the store that the event occurred in. | ||
Buttons in the window: | Buttons in the window: | ||
+ | * **Export** Export the log to a tab delimited text file. You can then import this into other applications (such as a spreadsheet application) for editing and printing. | ||
+ | * **Print** Prints the displayed list of log entries on your printer. | ||
+ | * **Order by** Sort the log by something than the default date/time order. | ||
+ | * **Find** Search for particular records in the log. | ||
+ | * **OK** Close the window. | ||
- | | + | **Double-clicking a log entry** in the list will bring up a read-only window showing |
- | | + | |
- | | + | |
- | * // | + | |
- | * //Print// - allows you to print the log | + | |
- | <WRAP center round tip 60%> | + | {{ : |
- | Double-clicking a log entry will bring up a small window with the full item details. You can not edit this information. | + | |
- | </ | + | |
+ | * **Date:** The date the log entry was created | ||
+ | * **Time:** The time the log entry was created | ||
+ | * **User:** The name of the user whoi did the action that resulted in the log entry | ||
+ | * **Log ID:** The ID of thelog entry in the database | ||
+ | * **Record ID:** The ID of the record the log entry relates to e.g. the transaction that was edited | ||
+ | * **Copy ID to Clipboard button:** On click, copies the Record ID value to the Clipboard so you can poaste it somewhere else | ||
+ | * **Event type:** The type of the event that occurred. Used for filtering | ||
+ | * **Event:** Description of the event that occurred | ||
+ | * **View Data button:** On click, if the log entry has additional JSON information, | ||
- | Period for review: | + | |
- | * Appropriate | + | ==== Dates ==== |
- | * Several periods are available from the drop down list (the default | + | If you want to see log records that were generated over a different period then manually edit the dates in the **From** and **To** |
{{ : | {{ : | ||
- | Choose a specific event: | + | ==== Event types ==== |
- | * A second | + | Additionally, |
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | ==== Custom query ==== | ||
+ | |||
+ | If you are looking for log records that are not in the list of common event types described above, you will need to create | ||
+ | |||
+ | - Set the date / time period | ||
+ | - Click on **Find** | ||
+ | - Click on the small right arrow to the right of the first field box | ||
+ | - Select the data type that you are looking for. In this case, we are looking for the '' | ||
+ | - Type in the particular event type that we are looking for. In this case, we are looking for the '' | ||
+ | - Click on **Query** | ||
+ | - Once you are happy with the included results, click on **Print** (or **Export** to produce a text file that can be imported to Excel and manipulated) | ||
+ | |||
+ | {{ :admin:2018-10-03_10_38_15_log_query.png? | ||
- | {{ : | ||
- | See [[.:tables_fields: | + | \\ |
+ | \\ | ||
+ | | // Previous: | ||
- | // Previous: [[admin: | ||
---- struct data ---- | ---- struct data ---- | ||
+ | pagestatus.status | ||
---- | ---- | ||