X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=doc%2Flog.texi;fp=doc%2Flog.texi;h=3b567a0febff5a81b748d88e0f19623ad7897331;hb=4a4c1be88baf3fa5426bc1c9c96e104643155fca;hp=0000000000000000000000000000000000000000;hpb=84cbe89a78a5109f833808b26251ec22f3cd97db;p=nncp.git diff --git a/doc/log.texi b/doc/log.texi new file mode 100644 index 0000000..3b567a0 --- /dev/null +++ b/doc/log.texi @@ -0,0 +1,31 @@ +@node Log +@unnumbered Log format + +Log is a plaintext file with single log entry per line. Lines are "\n" +separated. Each line has the following format: + +@verbatim +LEVEL | DATETIME | SD | MSG +@end verbatim + +Example log records: + +@verbatim +I 2017-01-09T08:41:54.751732131Z [nncp-xfer node="VHMTRWDOXPLK7BR55ICZ5N32ZJUMRKZEMFNGGCEAXV66GG43PEBQ" pkt="KMG6FO5UNEK7HWVFJPWQYC7MOZ76KEZ4FWCGM62PWA2QE5755NPA" size="4162548" xx="tx"] +I 2017-01-09T08:42:18.990005394Z [sp-infos node="BYRRQUULEHINPKEFN7CHMSHR5I5CK7PMX5HQNCYERTBAR4BOCG6Q" pkts="0" size="0" xx="tx"] +I 2017-01-09T08:48:59.264847401Z [call-finish duration="10" node="BYRRQUULEHINPKEFN7CHMSHR5I5CK7PMX5HQNCYERTBAR4BOCG6Q" rxbytes="60" rxspeed="60" txbytes="108" txspeed="108"] +@end verbatim + +@table @code +@item | + Space character. +@item LEVEL + Is single character log level. As a rule is is either @code{I} + (informational message), or @code{E} (error message). +@item DATETIME + UTC datetime in RFC 3339 @code{2006-01-02T15:04:05.999999999Z} format. +@item SD + Structured data as in RFC 5424. +@item MSG + Arbitrary UTF-8 encoded text data. +@end table