-
Notifications
You must be signed in to change notification settings - Fork 906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Per file log levels #6406
Per file log levels #6406
Conversation
`struct log` becomes `struct logger`, and the member which points to the `struct log_book` becomes `->log_book` not `->lr`. Also, we don't need to keep the log_book in struct plugin, since it has access to ld's log_book. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rather than exposing the filtering internals. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This is where it's set, not some random logger. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
I can't seem to create separate INFO and DEBUG logs.
CLN will create both files but only log INFO messages to both. Do I need something like |
You want two
You probably want:
|
86af7a9
to
c96e04b
Compare
That did the trick, @rustyrussell. I now have an |
db03a19
to
e998603
Compare
Rather than initializating the "print_level" field on first use, we can do it in logging_options_parsed(), now we have a linked list of them. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Fixes: ElementsProject#5392 Changelog-Added: config: `log-level` can be specified on a per-logfile basis.
Without this, only per-peer daemons were filtered correctly. For generic daemons, we need to filter with the actual nodeid they use (if any). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Fixed: config: `log-level` filters now apply correctly to messages from `connectd`.
e998603
to
f2a6d8d
Compare
This has been long outstanding request (#5392), and rather than push it back another milestone (again!) I've implemented it. Cleaned some things up too.