Plans for a support of custom, configurable loggers #2293
Replies: 2 comments 1 reply
-
First of all, thanks for the great feedback, @marcindulak. Let me try to address each of the points you raised.
The primary goals behind the service and access logging were to create human readable logs written to stdout. While we can certainly add a configurable option to output JSON formatted logs, we'd first like to understand your use cases. The proposed JSON schema will have three high level fields, A common use case we envisioned is logging the prediction input and output, which is tracked under prediction events (https://github.com/bentoml/BentoML/issues/2196).
The
We will standardize timestamp format before the official 1.0 release. We are happy to jump on a chat with you to learn your requirements on logging. Please let us know if any time works for you. |
Beta Was this translation helpful? Give feedback.
-
Standardized logging format in PR #2298. |
Beta Was this translation helpful? Give feedback.
-
I have questions related to logging in the upcoming bentoml 1.0
Are there plans for json logging?
I'm using one of the log aggregators, which recognizes json logs out-of-the box, however requires writing custom parsers for text logs. For example, the following log emitted by bentoml appears the log aggregator as the content, without the message and INFO level identified separately
however, the json log below is ingested properly, with the "message" and "level" recognized
I looks like the support for custom loggers has been removed following Unable to change prediction log format #1464,
however there is a recent work on logging Service and Access Logging #2149.
How to reduce the amount of logged information?
When starting a docker container
A failed request, generates a log with ~400 lines of traceback
How to log a full timestamp in a specific format?
The above examples use a [HH:MM:SS] time-only format, while a more explicit iso-8601, which includes a full timestamp may be preferred.
Beta Was this translation helpful? Give feedback.
All reactions