A thread-safe, POSIX-compliant logging system with real-time signal control
Three real-time signals for dynamic control:
Three configurable detail levels:
Features ensuring thread-safe operation:
Use of atomic types for thread-safe state management without heavy locks
Fixed-size buffers with MAX_LOG_MESSAGE_SIZE to prevent memory allocation during logging
Implementation of line buffering (setvbuf) for optimal I/O performance
File mutex locked only during actual write operations
Async-signal-safe operations in signal handlers to prevent deadlocks