Hacker News new | ask | show | jobs
by pionar 1830 days ago
The ability to change logging levels of either a category or all categories at runtime is one.

Being able to monitor levels via an administrative endpoint.

A decent rolling file implementation that can compress the archived files.

These are all things I've had to implement (on top of serilog, no less) in the past year.

log4j2 has these out of the box.

1 comments

> The ability to change logging levels of either a category or all categories at runtime is one.

LoggingLevelSwitch?

> Being able to monitor levels via an administrative endpoint.

I wrote actuator endpoints for this one, was not hard but yeah.

> A decent rolling file implementation that can compress the archived files.

serilog-sinks-file has FileLifecycleHooks?. There's OOB serilog-sinks-file-gzip but you can also implement your own.