Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Log *log.Entry
Log is the global log entry; preconfigured based on lambda configuration options
Functions ¶
func AddField ¶
AddField allows adding a structured field and value to the global log entry; it does not add the field to the global entry itself but instead returns a new Entry with the field added
func AddFields ¶
AddFields allows for the adding of multiple structure fields to the global log.Entry
func GetLogForCategory ¶
func GetLogForCategory(cat LogCategory) *log.Entry
GetLogForCategory returns a configured log.Entry for the given category
Types ¶
type LogCategory ¶
type LogCategory int
LogCategory represents a known logging category type
const ( DefaultCategory LogCategory = iota DevEnvCategory DevEnvNotificationCategory HTTPCategory LambdaCategory SnsNotificationCategory )
Supported logging categories
func (LogCategory) String ¶
func (c LogCategory) String() string
Click to show internal directories.
Click to hide internal directories.