Blame winpr/wlog.7

Packit Service fa4841
.\" Written by David Fort (contact@hardening-consulting.com)
Packit Service fa4841
.\" Process this file with
Packit Service fa4841
.\" groff -man -Tascii wlog.7
Packit Service fa4841
.\"
Packit Service fa4841
.TH wLog 7 "June 2016" Version "2.0"
Packit Service fa4841
.SH NAME
Packit Service fa4841
wLog \- WinPR logging facility
Packit Service fa4841
Packit Service fa4841
.SH DESCRIPTION
Packit Service fa4841
wLog is a configurable and flexible logging system used throughout WinPR and
Packit Service fa4841
FreeRDP.
Packit Service fa4841
Packit Service fa4841
The primary concept is to have a hierarchy of loggers that can be be configured
Packit Service fa4841
independently.
Packit Service fa4841
Packit Service fa4841
.SH Appenders
Packit Service fa4841
Packit Service fa4841
WLog uses different appenders that define where the log output should be written
Packit Service fa4841
to. If the application doesn't explicitly configure the appenders the below
Packit Service fa4841
described variable WLOG_APPENDER can be used to choose one appender.
Packit Service fa4841
Packit Service fa4841
The following kind of appenders are available:
Packit Service fa4841
Packit Service fa4841
.IP Binary
Packit Service fa4841
Write the log data into a binary format file.
Packit Service fa4841
Packit Service fa4841
.IP Console
Packit Service fa4841
The console appender writes to the console. Depending of the operating system
Packit Service fa4841
the application runs on, the output might be handled differently. For example
Packit Service fa4841
on android log print would be used.
Packit Service fa4841
Packit Service fa4841
.IP File
Packit Service fa4841
The file appender writes the textual output to a file.
Packit Service fa4841
Packit Service fa4841
.IP Udp
Packit Service fa4841
This appender sends the logging messages to a pre-defined remote host via UDP.
Packit Service fa4841
Packit Service fa4841
If no target is set the default one 127.0.0.1:20000 is used. To receive the
Packit Service fa4841
log messages one can use netcat. To receive the default target the following
Packit Service fa4841
command can be used:
Packit Service fa4841
nc -u 127.0.0.1 -p 20000 -l
Packit Service fa4841
.IP Syslog
Packit Service fa4841
Use syslog for outputting the debug messages.
Packit Service fa4841
.IP Journald
Packit Service fa4841
This appender outputs messages to journald.
Packit Service fa4841
Packit Service fa4841
.SH Levels
Packit Service fa4841
The WLog are complementary, the higher level always includes the lower ones.
Packit Service fa4841
The level list below is top down. Top the highest level.
Packit Service fa4841
Packit Service fa4841
.IP TRACE
Packit Service fa4841
print everything including packets dumps
Packit Service fa4841
.IP DEBUG
Packit Service fa4841
debug messages
Packit Service fa4841
.IP INFO
Packit Service fa4841
general information
Packit Service fa4841
.IP WARN
Packit Service fa4841
warnings
Packit Service fa4841
.IP ERROR
Packit Service fa4841
errors
Packit Service fa4841
.IP FATAL
Packit Service fa4841
fatal problems
Packit Service fa4841
.IP OFF
Packit Service fa4841
completely disable the wlog output
Packit Service fa4841
Packit Service fa4841
.SH Formats
Packit Service fa4841
The format a logger prints has the following possible options:
Packit Service fa4841
Packit Service fa4841
.IP lv
Packit Service fa4841
log level
Packit Service fa4841
.IP mn
Packit Service fa4841
module name
Packit Service fa4841
.IP fl
Packit Service fa4841
file name
Packit Service fa4841
.IP fn
Packit Service fa4841
function
Packit Service fa4841
.IP ln
Packit Service fa4841
line number
Packit Service fa4841
.IP pid
Packit Service fa4841
process id
Packit Service fa4841
.IP tid
Packit Service fa4841
thread id
Packit Service fa4841
.IP yr
Packit Service fa4841
year
Packit Service fa4841
.IP mo
Packit Service fa4841
month
Packit Service fa4841
.IP dw
Packit Service fa4841
day of week
Packit Service fa4841
.IP hr
Packit Service fa4841
hour
Packit Service fa4841
.IP mi
Packit Service fa4841
minute
Packit Service fa4841
.IP se
Packit Service fa4841
second
Packit Service fa4841
.IP ml
Packit Service fa4841
millisecond
Packit Service fa4841
.PP
Packit Service fa4841
A maximum of 16 options can be used per format string.
Packit Service fa4841
Packit Service fa4841
An example that generally sets the WLOG_PREFIX for xfreerdp would look like:
Packit Service fa4841
WLOG_PREFIX="pid=%pid:tid=%tid:fn=%fn -" xfreerdp /v:xxx
Packit Service fa4841
Packit Service fa4841
Packit Service fa4841
.SH ENVIRONMENT
Packit Service fa4841
.IP WLOG_APPENDER
Packit Service fa4841
The kind of appender, the accepted values are: CONSOLE, FILE, BINARY, SYSLOG, JOURNALD or UDP
Packit Service fa4841
Packit Service fa4841
.IP WLOG_PREFIX
Packit Service fa4841
configure the prefix used for outputting the message (see Format for more details and examples)
Packit Service fa4841
Packit Service fa4841
.IP WLOG_LEVEL
Packit Service fa4841
the level to output messages for
Packit Service fa4841
Packit Service fa4841
.IP WLOG_FILTER
Packit Service fa4841
sets a filter for WLog messages. Only the filtered messages are
Packit Service fa4841
printed. The format of the filter is a series of \<logger name\>:\<level\> separated by
Packit Service fa4841
comas
Packit Service fa4841
Packit Service fa4841
example: WLOG_FILTER=core.channel:DEBUG,dummy:TRACE
Packit Service fa4841
will display debug messages for the core.channel logger and trace level for the dummy logger
Packit Service fa4841
Packit Service fa4841
.IP WLOG_FILEAPPENDER_OUTPUT_FILE_PATH
Packit Service fa4841
When using the file appender it may contains the output log file's path
Packit Service fa4841
Packit Service fa4841
.IP WLOG_FILEAPPENDER_OUTPUT_FILE_NAME
Packit Service fa4841
When using the file appender it may contains the output log file's name
Packit Service fa4841
Packit Service fa4841
.IP WLOG_JOURNALD_ID
Packit Service fa4841
When using the systemd journal appender, this variable contains the id used with
Packit Service fa4841
the journal (by default the executable's name)
Packit Service fa4841
Packit Service fa4841
.IP WLOG_UDP_TARGET
Packit Service fa4841
target to use for the UDP appender in the format
Packit Service fa4841
.B host:port
Packit Service fa4841
Packit Service fa4841
.SH BUGS
Packit Service fa4841
Please report any bugs using the bug reporting form on the
Packit Service fa4841
.B FreeRDP
Packit Service fa4841
web site
Packit Service fa4841
Packit Service fa4841
.SH "SEE ALSO"
Packit Service fa4841
Additional information and the latest version is available
Packit Service fa4841
at the web site:
Packit Service fa4841
.B http://www.freerdp.com
Packit Service fa4841
Packit Service fa4841
.SH AUTHOR
Packit Service fa4841
David Fort <contact@hardening-consulting.com> wrote this manpage from materials written
Packit Service fa4841
by Bernhard Miklautz <bernhard.miklautz@thincast.com>.
Packit Service fa4841