loggermanager

package
v0.0.0-...-0686167 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(fileName string, maxBackupCnt, maxBackupFileSize, maxAgeForBackupFileInDays int, loglevel zapcore.Level)

Init Init Logger maxBackupFileSize, megabytes maxAgeForBackupFile, days

func LogDebug

func LogDebug(args ...interface{})

LogDebug logs a message at level Debug on the standard logger.

func LogError

func LogError(args ...interface{})

LogError logs a message at level Error on the standard logger.

func LogInfo

func LogInfo(args ...interface{})

LogInfo logs a message at level Info on the standard logger.

func LogPanic

func LogPanic(args ...interface{})

LogPanic logs a message at level Panic on the standard logger.

func LogWarn

func LogWarn(args ...interface{})

LogWarn logs a message at level Warn on the standard logger.

Types

type CoreError

type CoreError struct {
	// contains filtered or unexported fields
}

CoreError custom error

func Wrap

func Wrap(msg string) *CoreError

Wrap error

func (*CoreError) Error

func (cerr *CoreError) Error() string

Jump to

Keyboard shortcuts

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