forked from jtorjo/logwizard
-
Notifications
You must be signed in to change notification settings - Fork 1
Syntax
Jonathan Haberl edited this page Aug 14, 2018
·
1 revision

The Log Syntax is the syntax of each line of the log.
LogWizard tries to automatically detect the syntax of a log file. When a log's syntax cannot be found, or is detected incorrectly you can edit it manually.
$part[start,end] $part[start,end] ...
$part may be:
-
$msg- Log message (must be last) -
$date- Date -
$time- Time -
$level- Log level (INFO, DEBUG, ERROR, FATAL) -
$file- Source file -
$func- Source function (this is not detected automatically) -
$class- Source class -
$ctx1..ctx15- Extra contextual information
start and end may be:
-
number- When a part starts at a specific index or has a specific length -
string- Marks position for start or end of part -
''Empty string to continue from the current position
Examples:
$time[0,12] $ctx1[13,10] $level[24,5] $class[' ','- '] $msg will parse: 11:06:13,944 main DEBUG TNControls.ls_util - load_save - on_change not implemented - enable_vision'
to:
-
time= 11:06:13,944 -
ctx1= main -
level= DEBUG -
class= TNControls.ls_util -
msg= load_save - on_change not implemented - enable_vision
Both syntax and config files valid for these tools can also be used with LogWizard.