Versions in this module Expand all Collapse all v2 v2.0.1 Oct 9, 2019 v2.0.0 Sep 16, 2019 Changes in this version + const DefaultKeyContentType + const DefaultKeyError + const DefaultKeyEventCategory + const DefaultKeyEventMsg + const DefaultKeyEventName + const DefaultKeyIsValid + const DefaultKeyLogLevel + const DefaultKeyMonitoringEvent + const DefaultKeyMsg + const DefaultKeyServiceName + const DefaultKeyTime + const DefaultKeyTransactionID + const DefaultKeyUUID + type KeyNamesConfig struct + KeyContentType string + KeyError string + KeyEventCategory string + KeyEventMsg string + KeyEventName string + KeyIsValid string + KeyLogLevel string + KeyMonitoringEvent string + KeyMsg string + KeyServiceName string + KeyTime string + KeyTransactionID string + KeyUUID string + func GetDefaultKeyNamesConfig() *KeyNamesConfig + func GetFullKeyNameConfig(conf KeyNamesConfig) *KeyNamesConfig + type LogEntry struct + func (entry *LogEntry) WithCategorisedEvent(eventName, eventCategory, eventMsg, tid string) *LogEntry + func (entry *LogEntry) WithError(err error) *LogEntry + func (entry *LogEntry) WithField(key string, value interface{}) *LogEntry + func (entry *LogEntry) WithFields(fields map[string]interface{}) *LogEntry + func (entry *LogEntry) WithMonitoringEvent(eventName, tid, contentType string) *LogEntry + func (entry *LogEntry) WithTime(time time.Time) *LogEntry + func (entry *LogEntry) WithTransactionID(tid string) *LogEntry + func (entry *LogEntry) WithUUID(uuid string) *LogEntry + func (entry *LogEntry) WithValidFlag(isValid bool) *LogEntry + type UPPLogger struct + func NewUPPInfoLogger(serviceName string, kconf ...KeyNamesConfig) *UPPLogger + func NewUPPLogger(serviceName string, logLevel string, kconf ...KeyNamesConfig) *UPPLogger + func NewUnstructuredLogger() *UPPLogger + func (ulog *UPPLogger) LogServiceStartedEvent(port int) + func (ulog *UPPLogger) WithCategorisedEvent(eventName, eventCategory, eventMsg, tid string) *LogEntry + func (ulog *UPPLogger) WithError(err error) *LogEntry + func (ulog *UPPLogger) WithField(key string, value interface{}) *LogEntry + func (ulog *UPPLogger) WithFields(fields map[string]interface{}) *LogEntry + func (ulog *UPPLogger) WithMonitoringEvent(eventName, tid, contentType string) *LogEntry + func (ulog *UPPLogger) WithTime(time time.Time) *LogEntry + func (ulog *UPPLogger) WithTransactionID(tid string) *LogEntry + func (ulog *UPPLogger) WithUUID(uuid string) *LogEntry + func (ulog *UPPLogger) WithValidFlag(isValid bool) *LogEntry