Documentation ¶
Index ¶
- func Debug(v ...any)
- func Done(v ...any)
- func Error(err error, v ...any)
- func ErrorMsg(v ...any)
- func Fatal(err error, v ...any)
- func FatalMsg(v ...any)
- func Info(v ...any)
- func SetColors(colors Colors)
- func SetErrOut(out *os.File)
- func SetExtraErrOuts(outs []io.Writer)
- func SetExtraNormalOuts(outs []io.Writer)
- func SetFatalExitCode(code int)
- func SetNormalOut(out *os.File)
- func SetShowStack(show bool)
- func SetTimeFormat(format string)
- func SetTimezone(loc *time.Location)
- func Warning(v ...any)
- type Colors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetExtraErrOuts ¶
Set the extra normal out destinations (e.g. logging to a file)
func SetExtraNormalOuts ¶
Set the extra normal out destinations (e.g. logging to a file)
func SetFatalExitCode ¶
func SetFatalExitCode(code int)
Set the exit code used by Fatal and FatalMsg.
Default is 1
func SetShowStack ¶
func SetShowStack(show bool)
Set if the stack trace should be shown or not when calling Error or Fatal.
Default is true
func SetTimeFormat ¶
func SetTimeFormat(format string)
Set the time format
Default is 2006/01/02 15:04:05 MST
Types ¶
Click to show internal directories.
Click to hide internal directories.