Monthly Archive:: August 2026

FileBackend in Production: C++ Log Rotation with logme

Writing log messages to a file is easy. Keeping file logging predictable after months of production use is much harder. An active log file must not grow forever. Old logs need to be preserved for a useful period, but they also need to be deleted eventually. Finished files may need compression. At the same time,

Thread-Local Logging Context in C++: Using Thread-Local Context in logme

A useful log should do more than tell you what happened. It should also make it clear which request, connection, client, or background job a message belongs to. When an application is still small, this usually seems easy enough. You can just include the extra data directly in the log call: LogmeI( "Request %s: loading