# README
slog
The slog package provides a simple, basic, fast leveled logger.
It supports logging to stderr and stdout, various levels, caller location information (file, line) and backtraces.
It tries to minimize memory allocations by using an internal lock-less pool of buffers.
It does not use any locking so log messages might get "mixed" between the threads.
Note that enabling file location or backtracing will cause a significant slowdown and lot of memory allocations.
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Init initialises a log with a given maximum log level, options and output type.
No description provided by the author
LevelName returns the log level name as string.
LogOptString returns the log options as string (seprated by "|").
New returns a new log, intialised with the give options.
No description provided by the author
No description provided by the author
No description provided by the author
SetLevel changes the log level.
SetOptions changes the log options.
SetLevel changes the output type.
No description provided by the author
No description provided by the author
# Constants
maximum buffer in pool, must be 2^k.
typical buf sz.
long.
short.
log levels.
log levels.
log levels.
log output types.
log output types.
log levels.
log levels.
long version (complete filenames).
short filenames.
log levels.
log levels.
log levels.
log options.
log output types.
log output types.
log options.
log levels.
max allowed (if more reset).
No description provided by the author
# Variables
No description provided by the author
# Type aliases
Log is a simple logger, keeping all its configuration inside an uint64.
LogLevel is the type used for the logging level.
LogOptions is the type used for the log options.
LogOutput is the type used for the log output type.