package
1.0.4
Repository: https://github.com/binchencoder/ease-gateway.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Context return a Logger with MDC from ctx.
CopyStandardLogTo arranges for messages written to the Go "log" package's default logs to also appear in the Google logs for the named and lower severities.
Error logs to the ERROR, WARNING, and INFO logs.
ErrorDepth acts as Error but uses depth to determine which call frame to log.
Errorf logs to the ERROR, WARNING, and INFO logs.
Errorln logs to the ERROR, WARNING, and INFO logs.
Exit logs to the FATAL, ERROR, WARNING, and INFO logs, then calls os.Exit(1).
ExitDepth acts as Exit but uses depth to determine which call frame to log.
Exitf logs to the FATAL, ERROR, WARNING, and INFO logs, then calls os.Exit(1).
Exitln logs to the FATAL, ERROR, WARNING, and INFO logs, then calls os.Exit(1).
Fatal logs to the FATAL, ERROR, WARNING, and INFO logs, including a stack trace of all running goroutines, then calls os.Exit(255).
FatalDepth acts as Fatal but uses depth to determine which call frame to log.
Fatalf logs to the FATAL, ERROR, WARNING, and INFO logs, including a stack trace of all running goroutines, then calls os.Exit(255).
Fatalln logs to the FATAL, ERROR, WARNING, and INFO logs, including a stack trace of all running goroutines, then calls os.Exit(255).
Flush flushes all pending log I/O.
Info logs to the INFO log.
InfoDepth acts as Info but uses depth to determine which call frame to log.
Infof logs to the INFO log.
Infoln logs to the INFO log.
SetVerbosity exposes the ability of changing log level at runtime.
V reports whether verbosity at the call site is at least the requested level.
VDepth is copy from glog1.go's function V, and adds argument depth to help locate the correct module used for vmodule flag.
One may write either if log.V(2) { log.Context(ctx).Info("log this") } or glog.V(2).Context(ctx).Info("log this") The second form is shorter but the first is cheaper if logging is off because it does not evaluate its arguments.
Warning logs to the WARNING and INFO logs.
WarningDepth acts as Warning but uses depth to determine which call frame to log.
Warningf logs to the WARNING and INFO logs.
Warningln logs to the WARNING and INFO logs.

# Constants

No description provided by the author
No description provided by the author

# Variables

MaxSize is the maximum size of a log file in bytes.
Stats tracks the number of lines of output and number of bytes per severity level.

# Structs

No description provided by the author
Logger is a struct contains MDC for log methods.
OutputStats tracks the number of output lines and bytes written.

# Type aliases

Level specifies a level of verbosity for V logs.
Switch is a boolean type with a method Context.
Verbose is a boolean type that implements Infof (like Printf) etc.
Verbose is a variant type of Logger.