Azure / Azurite

A lightweight server clone of Azure Storage that simulates most of the commands supported by it with minimal dependencies
MIT License
1.8k stars 318 forks source link

Feature request: Cloud native debug logging #1266

Open hholst80 opened 2 years ago

hholst80 commented 2 years ago

The current feature to emit the debug logging to a separate log file is not playing well with a containerized "cloud native" framework where all logging is done to stdout/stderr and the log level determines what should be emitted.

As an improvement or feature request I would like Azurite -debug to be replaced with a -loglevel selector that would enable the debug printout to stdout instead of routing all debug level (not limited to) to a separate file.

As a ++ request to that end I would prefer if the log format was customizable as well, so I can disable timestamps etc. from the log output (these are logged by logging middleware, and the application should not emit those, imho).

blueww commented 2 years ago

@hholst80 Thanks for the feature request! We will evaluate it per the customer request and our bandwidth. Besides that, as Azurite is also used in many other places "cloud native", the change looks like be kind of breaking.

cwoodcox commented 2 years ago

This would be awesome, --debug flag could remain in-place exactly as it is, and a new option could be added, like --log-level debug|info|warn|error|fatal or some other kind of selector to allow more logging to be output to STDOUT.