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 { // Messages with a log level not contained in this array // will not be dispatched. If nil, all messages will be dispatched. AcceptedLevels []zapcore.Level GroupName string StreamName string AWSConfig *aws.Config Async bool // if async is true, send a message asynchronously. zapcore.LevelEnabler // contains filtered or unexported fields }
CloudwatchCore is a zap Core for dispatching messages to the specified
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
type NewCloudwatchCoreParams ¶
Click to show internal directories.
Click to hide internal directories.