Feature Proposal: Logger options in riak.conf #2
martinsumner
started this conversation in
Ideas
Replies: 2 comments
-
Pull requests: |
Beta Was this translation helpful? Give feedback.
0 replies
-
There's a lengthier discussion to be had offline, after which we should update this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
The current riak.conf schema allows the log format to modified within logger, as well as the destination. The logger configuration that gets produced is not, though, backwards compatible with previous releases - i.e. crash.log etc.
There is also the issue of
metric
style logs, that are logged on a frequent heartbeat: these were introduced in-line with the observability strategy at one customer. Some components, especially the leveled backend, produce a significant number of logs when compared to other riak elements. Also it would be beneficial to stop misusing io:format and erlang.log for logging from application components.There is a need for more flexible and configurable logging, and ways to divert relatively verbose logging components away from the main console.log.
Proposal
There exists riak_logger which will allow for a backwards compatible configuration to be provided. So it would be good if it were possible to produce this output from the default riak.conf (and for it to be the default).
The proposal is to extend riak_logger to allow for individual components, by setting a log_type as log metadata to then be subject to a policy of:
It should be configurable within riak to extend riak_logger through different configuration functions, so that different outputs can be produced from the configuration items.
Design
For the configuration the conversion of config items to logger config was managed through a translation function embedded in the
riak.schema
. There is now a configuration item, which will allow for a translation function to be selected from those available in theriak_logger_config
module within the riak_logger application.Alternative Design Ideas
There are some outstanding questions:
ignore
backend and tictcaaae logs.Testing
...
Caveats
...
Pull Requests
OpenRiak/riak_logger#1
OpenRiak/riak#16
Planned Release for Inclusion
Riak 3.4.0
Beta Was this translation helpful? Give feedback.
All reactions