Documentation
¶
Index ¶
- Variables
- func Debug(value string)
- func Debugf(format string, values ...any)
- func Error(value string)
- func Errorf(format string, values ...any)
- func Info(value string)
- func Infof(format string, values ...any)
- func Success(value string)
- func Trace(value string)
- func Tracef(format string, values ...any)
- func Warning(value string)
- func Warningf(format string, values ...any)
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
var Level = Normal
Level contains current app logging level.
var TraceFile = utils.Join( getRoamingDir(), fmt.Sprintf("%s.log", time.Now().Format("060102150405")), )
TraceFile contains path to log file for http package. Can be not exists.
Functions ¶
func Debug ¶
func Debug(value string)
Debug print input text to os.Stdout with "[DEB]" mark and appended new line when log level is Detailed.
func Debugf ¶
Debugf format and print input text to os.Stdout with "[DEB]" mark and appended new line when log level is Detailed.
func Error ¶
func Error(value string)
Error print input text to os.Stderr with "[ERR]" mark and appended new line when log level is Minimal or above.
func Errorf ¶
Errorf format and print input text to os.Stderr with "[ERR]" mark and appended new line when log level is Minimal or above.
func Info ¶
func Info(value string)
Info print input text to os.Stdout with "[INF]" mark and appended new line when log level is Normal or above.
func Infof ¶
Infof format and print input text to os.Stdout with "[INF]" mark and appended new line when log level is Normal or above.
func Success ¶
func Success(value string)
Success print input text to os.Stdout with "[SCC]" mark and appended new line when log level is Minimal or above.
func Trace ¶ added in v1.4.0
func Trace(value string)
Trace print input text to os.Stdout with "[TRC]" mark and appended new line when log level is Detailed.
func Tracef ¶ added in v1.4.0
Tracef format and print input text to os.Stdout with "[TRC]" mark and appended new line when log level is Detailed.