4D v16.3Appendix E: Description of log files |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
Appendix E: Description of log files
|
Field name | Description |
sequence_number | Unique and sequential operation number in the logging session |
time | Date and time using 'MM/DD/YY, HH:MM:SS' format |
task_id | Internal task ID |
component | Component signature (e.g., '4SQLS' or 'dbmg') |
process_info_index | Corresponds to the "index" field in 4DRequestsLog_ProcessInfo.txt log, and permits linking a request to a process. |
request | Request ID in C/S or message string for SQL requests or LOG EVENT messages |
bytes_in | Number of bytes received |
bytes_out | Number of bytes sent |
duration | Time taken in milliseconds to perform action |
task_kind | Preemptive or cooperative (respectively 'p' or 'c') |
connection_uuid | UUID identifier of 4D Client, SQL or HTTP Connection (in connection with the same number in 4DRequestsLog_ProcessInfo.txt) |
This log file records information on each process created on the 4D Server machine or the 4D remote machine that executed the command (excluding Web requests).
How to start this log:
SET DATABASE PARAMETER(4D Server log recording;1) //server side
SET DATABASE PARAMETER(Client Log Recording;1) //remote side
Note: This statement also starts the 4DRequestsLog.txt log file (see above).
Headers
This file starts with the following headers:
Contents
For each process, the following fields are logged:
Field name | Description |
sequence_number | Unique and sequential operation number in the logging session |
time | Date and time using "MM/DD/YY, HH:MM:SS" format |
index | Unique and sequential process number |
CDB4DBaseContext | DB4D component database context UUID |
VTaskID | Internal task ID |
server_process_id | Process ID on Server |
remote_process_id | Process ID on Client |
process_name | Process name |
cID | Identifier of 4D Connection |
uID | Identifier of 4D Client |
IP | Client IPv4 address |
host_name | Client hostname |
user_name | User Login Name on client |
connection_uuid | UUID identifier process connection (in connection with the same number in 4DRequestsLog.txt) |
This log file records each HTTP request and each response in raw mode. Whole requests, including headers, are logged; optionally, body parts can be logged as well.
How to start this log:
WEB SET OPTION(Web debug log;wdl enable without body) //other values are available
The following fields are logged for both Request and Response:
Field name | Description |
SocketID | ID of socket used for communication |
PeerIP | IPv4 address of host (client) |
PeerPort | Port used by host (client) |
TimeStamp | Timestamp in milliseconds (since system startup) |
ConnectionID | Connection UUID (UUID of VTCPSocket used for communication) |
SequenceNumber | Unique and sequential operation number in the logging session |
This log file records each event occurring at the 4D programming level. Standard mode provides a basic view of events.
How to start this log:
SET DATABASE PARAMETER(Debug Log Recording;2) //standard
The following fields are logged for each event:
Column # | Description |
1 | Unique and sequential operation number in the logging session |
2 | Elapsed time in milliseconds since log startup |
3 | Process ID (p=xx) and unique process ID (puid=xx) |
4 | Stack level |
5 | Can be Command Name/ Method Name/Message/ Task Start Stop info/Plugin Name, event or Callback/Connection UUID |
6 | Time taken for logging operation in milliseconds (different from 2nd column) |
This log file records each event occurring at the 4D programming level in a tabbed, compact format that includes additional information (compared to the standard format).
How to start this log:
SET DATABASE PARAMETER(Debug Log Recording;2+4) //extended tabbed format
The following fields are logged for each event:
Column # | Description | |||||||||
1 | Unique and sequential operation number in the logging session | |||||||||
2 | Elapsed time since log startup in "hh:mm:ss:ms" format (can be preceded by a day counter. For example, if the log was started 3 days ago, the time could be "3+11:58:23:163") | |||||||||
3 | Process ID | |||||||||
4 | Unique process ID | |||||||||
5 | Stack level | |||||||||
6 | May represent (depending on type entry logged in the 8th column):
| |||||||||
7 | Parameters passed to commands, methods, or plugins | |||||||||
8 | Log operation type. This value may be an absolute value:
| |||||||||
9 | Form event if any; empty in other cases (suppose that column is used when code is executed in a form method or script) | |||||||||
10 | Elapsed time in micro seconds of the current logged action; only for the closing stack levels (see 10th columns in lines 123 and 124 in the log above) |
Product: 4D
Theme: Appendixes
Created: 4D v16
4D Design Reference ( 4D v16)
4D Design Reference ( 4D v16.1)
4D Design Reference ( 4D v16.3)