Difference between revisions of "Logging"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
stored with the belonging date. | stored with the belonging date. | ||
− | == | + | ==Logformat== |
;Example: | ;Example: | ||
: <pre>16:00:00.094 [127.0.0.1:3920] LOGIN admin OK 16:00:00.104 [127.0.0.1:3920] XQUERY 1 to 10 OK 12.36 ms 16:00:00.114 [127.0.0.1:3920] LOGOUT admin OK</pre> | : <pre>16:00:00.094 [127.0.0.1:3920] LOGIN admin OK 16:00:00.104 [127.0.0.1:3920] XQUERY 1 to 10 OK 12.36 ms 16:00:00.114 [127.0.0.1:3920] LOGOUT admin OK</pre> | ||
+ | : Now you can see the 'admin' user has the IP: 127.0.0.1 with the socket-port 3920. With this information you can identify each transaction of the corresponding user. |
Revision as of 11:04, 8 December 2010
Introduction
The server logs give you the following advantages:
- Overview about all processes executed on your server
- Tracing of any errors thrown by BaseX
- Tracing of wrong modified data
- Tracing of all specific user processes
- Tracing of time specific processes
The server logs are written in plain-text and can be opened with any editor. Furthermore there are well structured to give you a perfect overview about the processes. In your database folder you can find a folder named '.logs' where all log files are stored with the belonging date.
Logformat
- Example
16:00:00.094 [127.0.0.1:3920] LOGIN admin OK 16:00:00.104 [127.0.0.1:3920] XQUERY 1 to 10 OK 12.36 ms 16:00:00.114 [127.0.0.1:3920] LOGOUT admin OK
- Now you can see the 'admin' user has the IP: 127.0.0.1 with the socket-port 3920. With this information you can identify each transaction of the corresponding user.