package
module
Version:
v0.3.1
Opens a new window with list of versions in this module.
Published: Mar 27, 2022
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 33
Opens a new window with list of known importers.
README
¶
go-logger
A simple logger for small project
APIs
-
Trace(args ...interface{})
-
Tracef(format string, args ...interface{})
-
Tracew(msg string, args ...interface{})
-
Debug(args ...interface{})
-
Debugf(format string, args ...interface{})
-
Debugw(msg string, args ...interface{})
-
Info(args ...interface{})
-
Infof(format string, args ...interface{})
-
Infow(msg string, args ...interface{})
-
Warn(args ...interface{})
-
Warnf(format string, args ...interface{})
-
Warnw(msg string, args ...interface{})
-
Error(args ...interface{})
-
Errorf(format string, args ...interface{})
-
Errorw(msg string, args ...interface{})
-
Panic(args ...interface{})
-
Panicf(format string, args ...interface{})
-
Panicw(msg string, args ...interface{})
Documentation
¶
-
func Debug(args ...interface{})
-
func Debugf(format string, args ...interface{})
-
func Debugw(msg string, args ...interface{})
-
func Error(args ...interface{})
-
func Errorf(format string, args ...interface{})
-
func Errorw(msg string, args ...interface{})
-
func Info(args ...interface{})
-
func Infof(format string, args ...interface{})
-
func Infow(msg string, args ...interface{})
-
func Panic(args ...interface{})
-
func Panicf(format string, args ...interface{})
-
func Panicw(msg string, args ...interface{})
-
func SetFormat(format LogFormat)
-
func SetLevel(level string) error
-
func Trace(args ...interface{})
-
func Tracef(format string, args ...interface{})
-
func Tracew(msg string, args ...interface{})
-
func Warn(args ...interface{})
-
func Warnf(format string, args ...interface{})
-
func Warnw(msg string, args ...interface{})
-
type LogFormat
func Debug(args ...interface{})
Debug debug log
func Debugf(format string, args ...interface{})
Debugf debug log with format
func Debugw(msg string, args ...interface{})
Debugw debug log with additional context
func Error(args ...interface{})
Error error log
func Errorf(format string, args ...interface{})
Errorf error log with format
func Errorw(msg string, args ...interface{})
Errorw error log with additional context
func Info(args ...interface{})
Info info log
func Infof(format string, args ...interface{})
Infof info log with format
func Infow(msg string, args ...interface{})
Infow info log with additional context
func Panic(args ...interface{})
Panic panic log
func Panicf(format string, args ...interface{})
Panicf panic log with format
func Panicw(msg string, args ...interface{})
Panicw panic log with additional context
func Trace(args ...interface{})
Trace trace log
func Tracef(format string, args ...interface{})
Tracef trace log with format
func Tracew(msg string, args ...interface{})
Tracew trace log with additional context
func Warn(args ...interface{})
Warn warning log
func Warnf(format string, args ...interface{})
Warnf warning log with format
func Warnw(msg string, args ...interface{})
Warnw warn log with additional context
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.