Documentation
¶
Overview ¶
Package log implements a basic level based logger
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Init initializes the logger by setting a max level 'level' and a directory 'directory' where the log should be stored internally, it uses slog, so any package just imports slog This can be done as this function sets the logger as the default logger in slog It returns the log file and the error This log file should be closed at the end
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.