Discover Packages
github.com/jizoio/lambdalog
package
module
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Dec 31, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
lambdalog
The AWS logging helper tools
Expand ▾
Collapse ▴
Documentation
¶
View Source
const (
ServiceNameKey string = "service.name"
AWSRequestID string = "aws.request_id"
AWSFunctionName string = "aws.function_name"
AWSFunctionVersion string = "aws.function_version"
AWSLogGroupName string = "aws.log_group_name"
AWSLogStreamName string = "aws.log_stream_name"
)
New returns new `lambdalog.Logger` that sends log events to a zap.Logger.
func (l *Logger ) Debug(i ...interface{})
Debug uses fmt.Sprint to construct and log a message.
func (l *Logger ) Error(i ...interface{})
Error uses fmt.Sprint to construct and log a message.
func (l *Logger ) Info(i ...interface{})
Info uses fmt.Sprint to construct and log a message.
Info uses fmt.Sprint to construct and log a message,
as an alternative to Info.
Sync flushes any buffered log entries.
func (l *Logger ) Warn(i ...interface{})
Warn uses fmt.Sprint to construct and log a message.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.