Documentation ¶
Index ¶
- type Environment
- type Logger
- func (l *Logger) Debug(message string, fields ...zap.Field)
- func (l *Logger) Error(message string, fields ...zap.Field)
- func (l *Logger) Fatal(message string, fields ...zap.Field)
- func (l *Logger) Info(message string, fields ...zap.Field)
- func (l *Logger) Panic(message string, fields ...zap.Field)
- func (l *Logger) SetEnvironment(env Environment, service string)
- func (l *Logger) Sync()
- func (l *Logger) Warn(message string, fields ...zap.Field)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment string
const ( Development Environment = "dev" Staging Environment = "stg" Production Environment = "prod" Local Environment = "local" Unknown Environment = "unknown" )
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) SetEnvironment ¶
func (l *Logger) SetEnvironment(env Environment, service string)
Click to show internal directories.
Click to hide internal directories.