package
1.1.59
Repository: https://github.com/cylscripter/chest.git
Documentation: pkg.go.dev

# Functions

CtxDebugf calls the default logger's CtxDebugf method.
CtxErrorf calls the default logger's CtxErrorf method.
CtxFatalf calls the default logger's CtxFatalf method and then os.Exit(1).
CtxInfof calls the default logger's CtxInfof method.
CtxNoticef calls the default logger's CtxNoticef method.
CtxTracef calls the default logger's CtxTracef method.
CtxWarnf calls the default logger's CtxWarnf method.
Debug calls the default logger's Debug method.
Debugf calls the default logger's Debugf method.
DefaultLogger return the default logger for kitex.
Error calls the default logger's Error method.
Errorf calls the default logger's Errorf method.
Fatal calls the default logger's Fatal method and then os.Exit(1).
Fatalf calls the default logger's Fatalf method and then os.Exit(1).
Info calls the default logger's Info method.
Infof calls the default logger's Infof method.
Notice calls the default logger's Notice method.
Noticef calls the default logger's Noticef method.
SetLevel sets the level of logs below which logs will not be output.
SetLogger sets the default logger.
SetOutput sets the output of default logger.
Trace calls the default logger's Trace method.
Tracef calls the default logger's Tracef method.
Warn calls the default logger's Warn method.
Warnf calls the default logger's Warnf method.

# Constants

The levels of logs.
The levels of logs.
The levels of logs.
The levels of logs.
The levels of logs.
The levels of logs.
The levels of logs.

# Structs

自定义空 Logger.

# Interfaces

Control provides methods to config a logger.
CtxLogger is a logger interface that accepts a context argument and output logs with a format.
FormatLogger is a logger interface that output logs with a format.
FullLogger is the combination of Logger, FormatLogger, CtxLogger and Control.
Logger is a logger interface that provides logging function with levels.

# Type aliases

Level defines the priority of a log message.