log

package
v1.1.182-SM-Image-4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EventTypeAuthenticationErr log event type for validation error
	EventTypeAuthenticationErr = "Key_AuthenticationError"
	// EventTypeServiceDataReplication log event type for
	EventTypeServiceDataReplication = "Key_ServiceDataReplication"
	// EventTypeSuccess log event type key success
	EventTypeSuccess = "Key_Success"
	// EventTypeSysConfigErr log event type system configuration error
	EventTypeSysConfigErr = "Key_SystemConfigurationError"
	// EventTypeUnexpectedErr log event type for unexpected error
	EventTypeUnexpectedErr = "Key_UnexpectedError"
	// EventTypeValidationErr log event type for validation error
	EventTypeValidationErr = "Key_ValidationError"
)
View Source
const (
	// EventCodeActionComplete log event code for completion of action
	EventCodeActionComplete = "Key_ActionComplete"
	// EventCodeCryptoFaliure event code for crypto failure
	EventCodeCryptoFaliure = "Key_CryptoFailure"
	// EventCodeInvalidData log event code for invalid data
	EventCodeInvalidData = "Key_InvalidPayload"
	// EventCodeReadWriteFailure event code for read/write errors
	EventCodeReadWriteFailure = "Key_ReadWriteFailure"
	// EventCodeUnknown log event code for unknown errors
	EventCodeUnknown = "Key_Unknown"
)
View Source
const (
	// MessageInvalidInputData error message for - invalid entity data
	MessageInvalidInputData = "Invalid input data."
	// MessageUnableToFindURLResource error message for - unable to find URL resource
	MessageUnableToFindURLResource = "Unable to find record."
	// MessageAddEntityError error message for - unexpected error occured while adding new entity to database
	MessageAddEntityError = "Unexpected error occured while adding to database."
	// MessageNewEntityError error message for - unexpected error occured while creating new entity
	MessageNewEntityError = "Unexpected error occured while creating / validating new entity."
	// MessageDeleteEntityError error message for - unexpected error occured while deleting entity from database
	MessageDeleteEntityError = "Unexpected error occured while deleting from database."
	// MessageGetEntityError error message for - unexpected error occured while getting entities from database
	MessageGetEntityError = "Unexpected error occured while getting data from database."
	// MessageGenericErrorTemplate error message for - unexpected error occured while generic template
	MessageGenericErrorTemplate = "Unexpected error occured while %v."
	// MessageParseError error message for - unexpected error while parsing payload
	MessageParseError = "Unexpected error occured while parsing payload."
	// MessageUpdateEntityError error message for - unexpected error occured while adding new entity to database
	MessageUpdateEntityError = "Unexpected error occured while updating to database."
)

Variables

This section is empty.

Functions

func InitializeGlobalSettings added in v1.0.0

func InitializeGlobalSettings()

InitializeGlobalSettings initializes global settings

func New

func New(serviceName string, logLevel string, writers io.Writer) *zerolog.Logger

New creates new isla logger

func NewGormLogger added in v1.1.2

func NewGormLogger(logger zerolog.Logger, config Config) glogger.Interface

Types

type Config added in v1.1.2

type Config struct {
	SlowThreshold time.Duration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL