Commit 9e3381cc authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mihai Moldovan

nxproxy/nxcomp: document logging options

parent 3fcb8e4e
......@@ -132,6 +132,20 @@ static const char UsageInfo[] =
\n\
-v Print version information.\n\
\n\
-d <n> Set log level (0=FATAL, 1=ERROR, 2=WARNING, 3=INFO,\n\
4=DEBUG). Default is 0.\n\
\n\
-o <file> Name of the logfile. Default is stderr.\n\
\n\
-f <string> Specify log format. The characters in <string> define\n\
how the loglines are formatted. The following characters\n\
are supported, default is 0:\n\
0 only the plain text without any additions\n\
u include time\n\
l include loglevel\n\
T include thread ids\n\
L include the source code location of the log\n\
\n\
host:port Put at the end, specifies the host and port of the\n\
listening proxy.\n\
\n\
......
......@@ -36,6 +36,34 @@ Print this message.
.B -v
Print version information.
.TP 8
.B -d <int>
Set log level (0 for FATAL, 1 for ERROR, 2 for WARNING, 3 for INFO, 4 for
DEBUG). The default is 0.
.TP 8
.B -o <string>
Name of the log file. Default is stderr.
.TP 8
.B -f <string>
Specify log format. The characters in <string> define how the loglines
are formatted. The following characters are supported, default is '0':
.RS 8
.TP 8
.I 0
only the plain text without any additions. This is the default.
.TP 8
.I u
include time
.TP 8
.I l
include loglevel
.TP 8
.I T
include thread ids
.TP 8
.I L
include the location of the log call in the source code
.RE
.TP 8
.B <host>:<port>
Put at the end, specifies the host and port of the listening proxy.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment