Documentation ¶ Overview ¶ Package logger - wrapper for zap Index ¶ type Logger func NewLogger() (*Logger, error) func (l Logger) Debug(msg string, fields ...zap.Field) func (l Logger) Error(msg string, fields ...zap.Field) func (l Logger) Fatal(msg string, fields ...zap.Field) func (l Logger) Info(msg string, fields ...zap.Field) func (l Logger) Warn(msg string, fields ...zap.Field) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Logger ¶ type Logger struct { // contains filtered or unexported fields } Logger - func NewLogger ¶ func NewLogger() (*Logger, error) NewLogger - Creates a new logger instance func (Logger) Debug ¶ func (l Logger) Debug(msg string, fields ...zap.Field) Debug - Log with debug func (Logger) Error ¶ func (l Logger) Error(msg string, fields ...zap.Field) Error - Log with error func (Logger) Fatal ¶ func (l Logger) Fatal(msg string, fields ...zap.Field) Fatal - Log with fatal func (Logger) Info ¶ func (l Logger) Info(msg string, fields ...zap.Field) Info - Log with info func (Logger) Warn ¶ func (l Logger) Warn(msg string, fields ...zap.Field) Warn - Log with warn Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.