package
1.13.12
Repository: https://github.com/qiniu/x.git
Documentation: pkg.go.dev

# README

log

Extension module of golang logging

# Functions

CanOutput returns to output a message or not.
Debug prints a debug information.
Debugf prints a debug information.
Error prints an error information.
Errorf prints an error information.
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.
GetOutputLevel returns output level.
Info prints a prompting information.
Infof prints a prompting information.
New creates a new Logger.
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.
SetFlags sets the output flags for the standard logger.
SetOutput sets the output destination for the standard logger.
SetOutputLevel sets output level.
SetPrefix sets the output prefix for the standard logger.
SingleStack prints a stack trace of the calling goroutines.
Stack prints a stack trace of all goroutines.
Warn prints a warning information.
Warnf prints a warning information.

# Constants

the date: 2009/0123.
Ldebug is a log output level that prints debug information.
These flags define which text to prefix to each log entry generated by the Logger.
Lerror is a log output level that prints error information.
Lfatal is a log output level that prints fatal information.
Linfo is a log output level that prints prompting information.
final file format output is typically in the format c/d.go:23, which includes the last two paths.
level: 0(Debug), 1(Info), 2(Warn), 3(Error), 4(Panic), 5(Fatal).
full file name and line number: /a/b/c/d.go:23.
microsecond resolution: 01:23:23.123123.
module name.
Lpanic is a log output level that prints error information.
final file name element and line number: d.go:23.
initial values for the standard logger.
the time: 01:23:23.
Lwarn is a log output level that prints warning information.

# Variables

Std *Logger.

# Structs

A Logger represents an active logging object that generates lines of output to an io.Writer.