# README
Logging
We use Zap logger for this module
logger, err := NewZapLogger(env)
# Functions
NewSlogJsonLogger creates a new SLogger with a Json handler Currently colors are not supported with json handler.
NewSlogJsonLogger creates a new SLogger with a Json handler
outputWriter is the writer to write the logs to (typically os.Stdout, but can also use a io.MultiWriter(os.Stdout, file) to write to multiple outputs) handlerOptions is the options for the handler, such as Level is the minimum level to log AddSource if true, adds source information to the log
Deprecated: use NewJsonSLogger instead.
NewSlogTextLogger creates a new SLogger with a text handler
outputWriter is the writer to write the logs to (typically os.Stdout, but can also use a io.MultiWriter(os.Stdout, file) to write to multiple outputs) handlerOptions is the options for the handler, such as Level is the minimum level to log AddSource if true, adds source information to the log
Deprecated: use NewTextSLogger instead.
NewSlogTextLogger creates a new SLogger with a text handler Default behavior is colored log outputs.
NewZapLogger creates a new logger wrapped the zap.Logger.
NewZapLoggerByConfig creates a logger wrapped the zap.Logger Note if the logger need to show the caller, need use `zap.AddCallerSkip(1)` ad options.
# Constants
No description provided by the author
prints debug and above.
prints info and above.
# Structs
No description provided by the author
SLoggerOptions are options when creating a new SLogger.
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author