Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallFlags ¶
InstallFlags defines log flags with flag.FlagSet.
func InstallPFlags ¶
InstallPFlags defines log flags with pflag.FlagSet.
Types ¶
type Writer ¶
type Writer struct {
*zap.SugaredLogger
// contains filtered or unexported fields
}
Writer is the zap.SugaredLogger implementation of nlog.LogWriter interface.
func (*Writer) ChangeLogLevel ¶
ChangeLogLevel changes the log level on the fly. choose from DEBUG, INFO, WARN, ERROR, FATAL.
Click to show internal directories.
Click to hide internal directories.