kala13x/slog

Could you please add support for rotating file log?

sddongxh opened this issue · 1 comments

Thanks.

@sddongxh Currently, slog is a lightweight, zero-dependency C library. Implementing log rotation functionality requires using one of the compression libraries like zlib or zstd, which would complicate the idea of building and running slog on all devices without dependencies. Currently, slog supports log_callback functionality, where logs can be collected and written to a file. This makes users able to write their own file-logging implementation and log rotation functionality accordingly.