Hello,
I am using the -verbose mode with the Orthanc and trying to parse all
info, warnings and errors in a pretty way with NodeJS.
This is an example of the LOG:
I0507 22:24:38.950989 PluginsManager.cpp:172] ImageProcessingPolicy:
KLVEmbeddingPolicy
Watching the logs i assume the next format:
HEADER TIME FILE DESCRIPTION
1. The first letter of the HEADER corresponds to error for E, info for I
and warning for W? Is this correct, there are more?
Correct. There are no more IDs
2. What mean the next four numbers of the HEADER? In my case I have 0507.
0507 = 7th of May !
Full description here:
"Log lines have this form:
Lmmdd hh:mm:ss.uuuuuu threadid file:line] msg...
where the fields are defined as follows:
L A single character, representing the log
level (eg 'I' for INFO)
mm The month (zero padded; ie May is '05')
dd The day (zero padded)
hh:mm:ss.uuuuuu Time in hours, minutes and fractional seconds
threadid The space-padded thread ID as returned
by GetTID() (this matches the PID on Linux)
file The file name
line The line number
msg The user-supplied message"
In this implementation, "threadid" is not printed.