Documentation ¶
Index ¶
- Constants
- func BaseLogCoreWithLogFile(level zapcore.Level, filename string) zapcore.Core
- func BaseZapConfig(level zapcore.Level) zap.Config
- func NewCommonLogger() *zap.Logger
- func NewLoggerForHandler(handlerName string) *zap.Logger
- func NewLoggerForService(serviceName string) *zap.Logger
- func NewLoggerForSource(sourceName string) *zap.Logger
Constants ¶
View Source
const ( LogRetentionDays = 30 LogRetentionMaxSize = 10 // megabytes )
Variables ¶
This section is empty.
Functions ¶
func BaseLogCoreWithLogFile ¶
Setup Custom Log Core with custom filename
func NewLoggerForHandler ¶
func NewLoggerForService ¶
func NewLoggerForSource ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.