Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LogLevels = struct { INFO, DEBUG, WARN, ERROR slog.Level }{ INFO: slog.LevelInfo, DEBUG: slog.LevelDebug, WARN: slog.LevelWarn, ERROR: slog.LevelError, } )
Functions ¶
func GetInstance ¶
GetInstance implemented as singleton pattern to get Logger instance, created once for whole app:.
func GetLogTraceback ¶
func GetLogTraceback() string
GetLogTraceback return a string with info about filename, function name and line https://stackoverflow.com/questions/25927660/how-to-get-the-current-function-name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.