# Functions
NewCircularBufferLoggingManager initializes new CircularBufferLoggingManager.
NewFileLoggingManager initializes new FileLoggingManager.
NewJSONLines returns log sender that sends logs in JSON over TCP (newline-delimited) or UDP (one message per packet).
NewNullLoggingManager initializes NullLoggingManager.
# Constants
Chunk capacity is the length of each chunk, it should be big enough for the compression to be efficient.
Overall capacity of the log buffer (in raw bytes, memory size will be smaller due to compression).
Some logs are tiny, no need to reserve too much memory.
Number of zstd-compressed chunks to keep.
Safety gap to avoid buffer overruns, can be lowered as with compression we don't need much.
# Structs
CircularBufferLoggingManager implements logging to circular fixed size buffer.
FileLoggingManager implements simple logging to files.
NullLoggingManager sends all the logs to /dev/null.