Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LogFileMaxSize 日志文件最大100M LogFileMaxSize = 100 * 1024 * 1024 LogFileMaintainDay = 7 )
View Source
const ( Info logLevel = iota Warn Error )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncLogger ¶
type AsyncLogger struct {
// contains filtered or unexported fields
}
func GetLogger ¶
func GetLogger() *AsyncLogger
func (*AsyncLogger) Error ¶
func (l *AsyncLogger) Error(format string, args ...any)
func (*AsyncLogger) Info ¶
func (l *AsyncLogger) Info(format string, args ...any)
func (*AsyncLogger) InfoKV ¶
func (l *AsyncLogger) InfoKV(s *Schema)
func (*AsyncLogger) Warn ¶
func (l *AsyncLogger) Warn(format string, args ...any)
Click to show internal directories.
Click to hide internal directories.