# Functions
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.
LevelFilter returns a LevelFilter that is configured with the log levels that we use.
New creates a new Logger.
NewGRPCLogger creates a grpclog.LoggerV2 that will output to the supplied logger with Severity/Verbosity level appropriate for the given config.
NewLogWriter creates a LogWriter with the given buffer capacity.
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.
SetFlags sets the output flags for the standard logger.
SetOutput sets the output destination for the standard logger.
SetPrefix sets the output prefix for the standard logger.
Setup is used to perform setup of several logging objects:
* A LevelFilter is used to perform filtering by log level.
ValidateLevelFilter verifies that the log levels within the filter are valid.
# Constants
the date in the local time zone: 2009/01/23.
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.
# Structs
Config is used to set up logging.
GatedWriter is an io.Writer implementation that buffers all of its data into an internal buffer until it is told to let data through.
GRPCLogger wrapps a *log.Logger and implements the grpclog.LoggerV2 interface allowing gRPC servers to log to the standard Consul logger.
LogFile is used to setup a file based logger that also performs log rotation.
A Logger represents an active logging object that generates lines of output to an io.Writer.
LogWriter implements io.Writer so it can be used as a log sink.
SyslogWrapper is used to cleanup log messages before writing them to a Syslogger.
# Interfaces
LogHandler interface is used for clients that want to subscribe to logs, for example to stream them over an IPC mechanism.