Documentation ¶
Index ¶
- Variables
- func LevelThreshold(l zapcore.Level) []zapcore.Level
- func NewCloudwatchCore(params *NewCloudwatchCoreParams) (zapcore.Core, error)
- type CloudwatchCore
- func (c *CloudwatchCore) Check(ent zapcore.Entry, ce *zapcore.CheckedEntry) *zapcore.CheckedEntry
- func (c *CloudwatchCore) Levels() []zapcore.Level
- func (c *CloudwatchCore) Sync() error
- func (c *CloudwatchCore) With(fields []zapcore.Field) zapcore.Core
- func (c *CloudwatchCore) Write(ent zapcore.Entry, fields []zapcore.Field) error
- type NewCloudwatchCoreParams
Constants ¶
This section is empty.
Variables ¶
View Source
var AllLevels = []zapcore.Level{ zapcore.DebugLevel, zapcore.InfoLevel, zapcore.WarnLevel, zapcore.ErrorLevel, zapcore.FatalLevel, zapcore.PanicLevel, }
AllLevels Supported log levels
Functions ¶
func LevelThreshold ¶
LevelThreshold - Returns every logging level above and including the given parameter.
func NewCloudwatchCore ¶
func NewCloudwatchCore(params *NewCloudwatchCoreParams) (zapcore.Core, error)
Types ¶
type CloudwatchCore ¶
type CloudwatchCore struct { AcceptedLevels []zapcore.Level GroupName string StreamName string Config *aws.Config BatchFrequency time.Duration zapcore.LevelEnabler // contains filtered or unexported fields }
func (*CloudwatchCore) Check ¶
func (c *CloudwatchCore) Check(ent zapcore.Entry, ce *zapcore.CheckedEntry) *zapcore.CheckedEntry
func (*CloudwatchCore) Levels ¶
func (c *CloudwatchCore) Levels() []zapcore.Level
Levels sets which levels to sent to cloudwatch
func (*CloudwatchCore) Sync ¶
func (c *CloudwatchCore) Sync() error
Click to show internal directories.
Click to hide internal directories.