package
0.0.0-20201010064512-ade9fc0d65ef
Repository: https://github.com/mdgsf/utils.git
Documentation: pkg.go.dev
# README
log
Logger 单个日志
std 是 Logger 的实例,默认是单个日志
# Functions
No description provided by the author
ContentPrefix returns the output content prefix for the standard logger.
Debug is the same as Debugf.
Debugf calls Output to print to the standard logger.
Debugln debug level log.
No description provided by the author
Error is the same as Errorf.
Errorf calls Output to print to the standard logger.
Errorln debug level log.
Fatal is equivalent to Print() followed by a call to os.Exit(1).
Fatalf is equivalent to Printf() followed by a call to os.Exit(1).
Fatalln is equivalent to Println() followed by a call to os.Exit(1).
Flags returns the output flags for the standard logger.
Level returns the log level.
IncrOneCallDepth call depth add one.
Info is the same as Infof.
Infof calls Output to print to the standard logger.
Infoln debug level log.
NameToLevel get log level from level name.
New creates a new Logger.
No description provided by the author
Output writes the output for a logging event.
Panic is equivalent to Print() followed by a call to panic().
Panicf is equivalent to Printf() followed by a call to panic().
Panicln is equivalent to Println() followed by a call to panic().
Prefix returns the output prefix for the standard logger.
Print calls Output to print to the standard logger.
Printf calls Output to print to the standard logger.
Println calls Output to print to the standard logger.
SetCallDepth set whether log output is terminal.
SetContentPrefix sets the output content prefix for the standard logger.
SetFlags sets the output flags for the standard logger.
SetIsTerminal set whether log output is terminal.
SetLevel sets the log level.
SetOutput sets the output destination for the standard logger.
SetPrefix sets the output prefix for the standard logger.
SetSuffix sets the output suffix for the standard logger.
Suffix returns the output suffix for the standard logger.
Verbose is the same as Verbosef.
Verbosef calls Output to print to the standard logger.
Verboseln verbose level log.
Warn is the same as Warnf.
Warnf calls Output to print to the standard logger.
Warnln debug level log.
# Constants
DebugLevel level.
ErrorLevel level.
FatalLevel level.
InfoLevel level.
IsTerminal output to a terminal.
the date in the local time zone: 2009/01/23.
These flags define which text to prefix to each log entry generated by the Logger.
full file name and line number: /a/b/c/d.go:23.
microsecond resolution: 01:23:23.123123.
final file name element and line number: d.go:23.
initial values for the standard logger.
the time in the local time zone: 01:23:23.
if Ldate or Ltime is set, use UTC rather than the local time zone.
MaxContextLen max content len.
NotTerminal output to file.
PanicLevel level.
VerboseLevel level.
WarnLevel level.
# Structs
A Logger represents an active logging object that generates lines of output to an io.Writer.
MultiLogger use to output log to console and file at the same time.
# Type aliases
Level type.