mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 14:54:26 +01:00
doc/schemas: disableoffer, disconnect, feerates, fetchinvoice, fundchannel, fundchannel_cancel, fundchannel_complete, fundchannel_start, fundpsbt, getinfo, getlog, getroute.
We also add a test for getlog, since it was never called by the testsuite. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
60
doc/lightning-getlog.7
generated
60
doc/lightning-getlog.7
generated
@@ -29,31 +29,63 @@ The \fBgetlog\fR the RPC command to show logs, with optional log \fIlevel\fR\.
|
||||
.fi
|
||||
.SH RETURN VALUE
|
||||
|
||||
On success, a object will be return with the following parameters:
|
||||
On success, an object is returned, containing:
|
||||
|
||||
.RS
|
||||
.IP \[bu]
|
||||
\fIcreated_at\fR: An floating point value that represents the UNIX timestamp when logging began\.
|
||||
\fBcreated_at\fR (string): UNIX timestamp with 9 decimal places, when logging was initialized
|
||||
.IP \[bu]
|
||||
\fIbytes_used\fR: A string that represents the dimension in bytes of the log file\.
|
||||
\fBbytes_used\fR (u32): The number of bytes used by logging records
|
||||
.IP \[bu]
|
||||
\fIbytes_max\fR: An integer that represents the max dimension in bytes of log file\.
|
||||
\fBbytes_max\fR (u32): The bytes_used values at which records will be trimmed
|
||||
.IP \[bu]
|
||||
\fIlog\fR: An array of objects where each element contains the following proprieties:
|
||||
|
||||
\fBlog\fR (array of objects):
|
||||
|
||||
.RS
|
||||
.IP \[bu]
|
||||
\fItype\fR: A string that represents the log level\. The propriety can have an value equal to SKIPPED to indicate the existence of omitted entries\.
|
||||
.IP \[bu]
|
||||
\fItime\fR: A floating point value that represents the time since \fIcreated_at\fR\.
|
||||
.IP \[bu]
|
||||
\fIsource\fR: A string that represents the source of line\.
|
||||
.IP \[bu]
|
||||
\fIlog\fR: A string that represents the content of line\.
|
||||
\fBtype\fR (string) (one of "SKIPPED", "BROKEN", "UNUSUAL", "INFO", "DEBUG", "IO_IN", "IO_OUT")
|
||||
|
||||
.RE
|
||||
|
||||
If \fBtype\fR is "SKIPPED":
|
||||
|
||||
.RS
|
||||
.IP \[bu]
|
||||
\fInum_skipped\fR: An integer that it is present only if the log level is equal to SKIPPED\.
|
||||
\fBnum_skipped\fR (u32): number of unprinted log entries (deleted or below \fIlevel\fR parameter)
|
||||
|
||||
.RE
|
||||
|
||||
If \fBtype\fR is "BROKEN", "UNUSUAL", "INFO" or "DEBUG":
|
||||
|
||||
.RS
|
||||
.IP \[bu]
|
||||
\fBtime\fR (string): UNIX timestamp with 9 decimal places after \fBcreated_at\fR
|
||||
.IP \[bu]
|
||||
\fBsource\fR (string): The particular logbook this was found in
|
||||
.IP \[bu]
|
||||
\fBlog\fR (string): The actual log message
|
||||
.IP \[bu]
|
||||
\fBnode_id\fR (pubkey, optional): The peer this is associated with
|
||||
|
||||
.RE
|
||||
|
||||
If \fBtype\fR is "IO_IN" or "IO_OUT":
|
||||
|
||||
.RS
|
||||
.IP \[bu]
|
||||
\fBtime\fR (string): Seconds after \fBcreated_at\fR, with 9 decimal places
|
||||
.IP \[bu]
|
||||
\fBsource\fR (string): The particular logbook this was found in
|
||||
.IP \[bu]
|
||||
\fBlog\fR (string): The associated log message
|
||||
.IP \[bu]
|
||||
\fBdata\fR (hex): The IO which occurred
|
||||
.IP \[bu]
|
||||
\fBnode_id\fR (pubkey, optional): The peer this is associated with
|
||||
|
||||
.RE
|
||||
|
||||
|
||||
.RE
|
||||
|
||||
@@ -95,4 +127,4 @@ Vincenzo Palazzo \fI<vincenzo.palazzo@protonmail.com\fR> wrote the initial versi
|
||||
|
||||
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
|
||||
|
||||
\" SHA256STAMP:789e23927120d0fefd374592a3c655244fd6c28a122368bdd8da2f3cdde66798
|
||||
\" SHA256STAMP:13e3ab43fb6811bff8bee102ba85e7d4cb8eb97d11bb0720ae5c0c576ba021ec
|
||||
|
||||
Reference in New Issue
Block a user