Categorygithub.com/mlycore/log
modulepackage
0.1.1
Repository: https://github.com/mlycore/log.git
Documentation: pkg.go.dev

# README

log

A log framework for Golang.

GitHub release codecov GoReport License

# Functions

Debugf print debug level logs in a specific format.
Debugln print debug level logs in a line.
Errorf print error level logs in a specific format.
Errorln print error level logs in a line.
Fatalf print fatal level logs in a specific format.
Fatalln print fatal level logs in a line.
Infof print info level logs in a specific format.
Infoln print info level logs in a line.
NewDefaultLogger returns a instance of Logger with default configurations.
No description provided by the author
NewLogger returns a instance of Logger.
SetCallPath set caller path.
No description provided by the author
No description provided by the author
No description provided by the author
SetLevel set log level by name.
No description provided by the author
Tracef print trace level logs in a specific format.
Traceln print trace level logs in a line.
Warnf print warn level logs in a specific format.
Warnln print warn level logs in a line.

# Constants

No description provided by the author
CallPath is The depth of a function is called.
No description provided by the author
No description provided by the author
No description provided by the author
Color refers to if.
DefaultLogFile is the default log file path.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Local is the default time zone.
UNSPECIFIED means no log level.
Default LogLevel.
UNSPECIFIED means no log level.
UNSPECIFIED means no log level.
UNSPECIFIED means no log level.
UNSPECIFIED means no log level.
UNSPECIFIED means no log level.
UNSPECIFIED means no log level.
TimeFormatDefault is The default format of time.

# Variables

LogLevelMap is log level map.

# Structs

Entry
No description provided by the author
No description provided by the author
No description provided by the author
Logger defines a general logger which could write specific logs.
No description provided by the author

# Interfaces

Formatter will decide how logs are printed Default consist of: * TextFormatter, print as "deployment=kubestar namespace=default msg=deployment not found" * JSONFormatter, print as "{"deployment": "kubestar", "namespace": "default", "msg": "deployment not found"}".

# Type aliases

No description provided by the author