log

package
v0.0.0-...-04d676d Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventCfgPatchCreated   = "cfg_patch_created"
	EventDevRegistered     = "dev_registered"
	EventMSShutdown        = "ms_shutdown"
	EventPanic             = "panic"
	EventStoreInit         = "store_init"
	EventComponentStarted  = "component_started"
	EventComponentShutdown = "component_shutdown"
	EventWSConnAdded       = "ws_conn_added"
	EventWSConnRemoved     = "ws_conn_removed"
)

Variables

This section is empty.

Functions

func New

func New(appID, logLevel string) *zapLogger

InitLog initializes and returns a new instance of a logger.

Types

type Field

type Field = zapcore.Field

type Logger

type Logger interface {
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Info(msg string)
	Errorf(format string, args ...interface{})
	Error(msg string)
	Fatalf(format string, args ...interface{})
	Fatal(msg string)
	With(args ...interface{}) Logger
	Flush() error
}

Logger is a contract for the logger.

Directories

Path Synopsis
Package mock_log is a generated GoMock package.
Package mock_log is a generated GoMock package.

Jump to

Keyboard shortcuts

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