Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { SugaredLogger *zap.SugaredLogger ZapLogger *zap.Logger }
func New ¶
func New(name string, ctx *lambdacontext.LambdaContext) (*Logger, error)
New returns new `lambdalog.Logger` that sends log events to a zap.Logger.
func (*Logger) Debug ¶
func (l *Logger) Debug(i ...interface{})
Debug uses fmt.Sprint to construct and log a message.
func (*Logger) Error ¶
func (l *Logger) Error(i ...interface{})
Error uses fmt.Sprint to construct and log a message.
func (*Logger) Info ¶
func (l *Logger) Info(i ...interface{})
Info uses fmt.Sprint to construct and log a message.
Click to show internal directories.
Click to hide internal directories.