]> Cypherpunks.ru repositories - nncp.git/blob - doc/log.texi
Documentation updates
[nncp.git] / doc / log.texi
1 @node Log
2 @unnumbered Log format
3
4 Log is a plaintext file with single log entry per line. Lines are "\n"
5 separated. Each line has the following format:
6
7 @verbatim
8 LEVEL | DATETIME | SD | MSG
9 @end verbatim
10
11 Example log records:
12
13 @verbatim
14 I 2017-01-09T08:41:54.751732131Z [nncp-xfer node="VHMTRWDOXPLK7BR55ICZ5N32ZJUMRKZEMFNGGCEAXV66GG43PEBQ" pkt="KMG6FO5UNEK7HWVFJPWQYC7MOZ76KEZ4FWCGM62PWA2QE5755NPA" size="4162548" xx="tx"]
15 I 2017-01-09T08:42:18.990005394Z [sp-infos node="BYRRQUULEHINPKEFN7CHMSHR5I5CK7PMX5HQNCYERTBAR4BOCG6Q" pkts="0" size="0" xx="tx"]
16 I 2017-01-09T08:48:59.264847401Z [call-finish duration="10" node="BYRRQUULEHINPKEFN7CHMSHR5I5CK7PMX5HQNCYERTBAR4BOCG6Q" rxbytes="60" rxspeed="60" txbytes="108" txspeed="108"]
17 @end verbatim
18
19 @table @code
20 @item |
21     Space character.
22 @item LEVEL
23     Is single character log level. As a rule is is either @code{I}
24     (informational message), or @code{E} (error message).
25 @item DATETIME
26     UTC datetime in RFC 3339 @code{2006-01-02T15:04:05.999999999Z} format.
27 @item SD
28     Structured data as in RFC 5424.
29 @item MSG
30     Arbitrary UTF-8 encoded text data.
31 @end table