You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest to add the ability to create and use your own formatters for logging not only to a custom format via a callback (for example, LOG_ADD_FORMATTER(&CustomFormatCb, "custom_formatter_name"), or in another way.
The text was updated successfully, but these errors were encountered:
The number of log output formats in userver is limited, and LogHelper uses tskv (Stream-like tskv-formatted log message builder), as described in its documentation. I suggest using callbacks to create your own formatters. For example (pseudocode):
This will allow you to customize the log details and output format—JSON, YAML, etc.—instead of relying on tskv or other built-in userver formats. It may be useful if you need to use some kind of log aggregation system that requires a specific log format to be displayed in the user interface.
Add a description
I suggest to add the ability to create and use your own formatters for logging not only to a custom format via a callback (for example,
LOG_ADD_FORMATTER(&CustomFormatCb, "custom_formatter_name"
), or in another way.The text was updated successfully, but these errors were encountered: