2020-08-31 14:42:28 +02:00
.TH "LIGHTNING-GETLOG" "7" "" "" "lightning-getlog"
.SH NAME
lightning-getlog - Command to show logs\.
.SH SYNOPSIS
2020-09-07 12:46:28 +02:00
\fB getlog\fR [\fI level\fR ]
2020-08-31 14:42:28 +02:00
.SH DESCRIPTION
The \fB getlog\fR the RPC command to show logs, with optional log \fI level\fR \.
.RS
.IP \[ bu]
2020-09-07 12:46:28 +02:00
\fI level\fR : A string that represents the log level (\fI broken\fR , \fI unusual\fR , \fI info\fR , \fI debug\fR , or \fI io\fR )\. The default is \fI info\fR \.
2020-08-31 14:42:28 +02:00
.RE
.SH EXAMPLE JSON REQUEST
.nf
.RS
{
"id": 82,
"method": "getlog",
"params": {
"level": "debug"
}
}
.RE
.fi
.SH RETURN VALUE
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>
2021-05-26 09:35:01 +02:00
On success, an object is returned, containing:
2020-08-31 14:42:28 +02:00
.RS
.IP \[ bu]
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>
2021-05-26 09:35:01 +02:00
\fB created_at\fR (string): UNIX timestamp with 9 decimal places, when logging was initialized
2020-08-31 14:42:28 +02:00
.IP \[ bu]
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>
2021-05-26 09:35:01 +02:00
\fB bytes_used\fR (u32): The number of bytes used by logging records
2020-08-31 14:42:28 +02:00
.IP \[ bu]
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>
2021-05-26 09:35:01 +02:00
\fB bytes_max\fR (u32): The bytes_used values at which records will be trimmed
2020-08-31 14:42:28 +02:00
.IP \[ bu]
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>
2021-05-26 09:35:01 +02:00
\fB log\fR (array of objects):
2021-05-26 07:41:01 +02:00
.RS
2020-08-31 14:42:28 +02:00
.IP \[ bu]
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>
2021-05-26 09:35:01 +02:00
\fB type\fR (string) (one of "SKIPPED", "BROKEN", "UNUSUAL", "INFO", "DEBUG", "IO_IN", "IO_OUT")
.RE
If \fB type\fR is "SKIPPED":
.RS
2020-08-31 14:42:28 +02:00
.IP \[ bu]
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>
2021-05-26 09:35:01 +02:00
\fB num_skipped\fR (u32): number of unprinted log entries (deleted or below \fI level\fR parameter)
.RE
If \fB type\fR is "BROKEN", "UNUSUAL", "INFO" or "DEBUG":
.RS
2020-08-31 14:42:28 +02:00
.IP \[ bu]
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>
2021-05-26 09:35:01 +02:00
\fB time\fR (string): UNIX timestamp with 9 decimal places after \fB created_at\fR
2020-08-31 14:42:28 +02:00
.IP \[ bu]
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>
2021-05-26 09:35:01 +02:00
\fB source\fR (string): The particular logbook this was found in
.IP \[ bu]
\fB log\fR (string): The actual log message
.IP \[ bu]
\fB node_id\fR (pubkey, optional): The peer this is associated with
2020-08-31 14:42:28 +02:00
.RE
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>
2021-05-26 09:35:01 +02:00
If \fB type\fR is "IO_IN" or "IO_OUT":
.RS
.IP \[ bu]
\fB time\fR (string): Seconds after \fB created_at\fR , with 9 decimal places
.IP \[ bu]
\fB source\fR (string): The particular logbook this was found in
2020-08-31 14:42:28 +02:00
.IP \[ bu]
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>
2021-05-26 09:35:01 +02:00
\fB log\fR (string): The associated log message
.IP \[ bu]
\fB data\fR (hex): The IO which occurred
.IP \[ bu]
\fB node_id\fR (pubkey, optional): The peer this is associated with
.RE
2020-08-31 14:42:28 +02:00
.RE
On failure, one of the following error codes may be returned:
.RS
.IP \[ bu]
-32602: Error in given parameters\.
.RE
.SH EXAMPLE JSON RESPONSE
.nf
.RS
{
"created_at": "1598192543.820753463",
"bytes_used": 89285843,
"bytes_max": 104857600,
"log": [
{
"type": "SKIPPED",
"num_skipped": 45
},
{
"type": "INFO",
"time": "0.453627568",
"source": "plugin-autopilot.py",
"log": "RPC method 'autopilot-run-once' does not have a docstring."
}
]
}
.RE
.fi
.SH AUTHOR
Vincenzo Palazzo \fI <vincenzo.palazzo@protonmail.com\fR > wrote the initial version of this man page, but many others did the hard work of actually implementing this rpc command\.
.SH RESOURCES
Main web site: \fI https://github.com/ElementsProject/lightning\fR
2021-06-16 03:08:17 +02:00
\" SHA256STAMP:2503c2177e9d87f2d00338f2844f041dceec9458604d228732dade6e38fdf26e