Documentation ¶
Index ¶
- func CloseLogger()
- func Critical(format string, args ...interface{})
- func Debug(format string, args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(format string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func EventLogger(inner http.Handler, name string) http.Handler
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func InitLogger()
- func Notice(format string, args ...interface{})
- func Noticef(format string, args ...interface{})
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Warning(format string, args ...interface{})
- func Warningf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Critical ¶
func Critical(format string, args ...interface{})
Critical logs a message using CRITICAL as log level.
func Debug ¶
func Debug(format string, args ...interface{})
Debug logs a message using DEBUG as log level.
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf logs a message using DEBUG as log level and a format string.
func Error ¶
func Error(format string, args ...interface{})
Error logs a message using ERROR as log level.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf logs a message using ERROR as log level and a format string.
func EventLogger ¶
Middleware http per loggare su disco/terminale le richieste. Si noti che non viene rilevato nessun dato sensibile ad eccezione dell'indirizzo IP della richiesta e lo User Agent, che sono dati variabili
func Fatal ¶
func Fatal(args ...interface{})
Fatal is equivalent to l.Critical(fmt.Sprint()) followed by a call to os.Exit(1).
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf is equivalent to l.Critical followed by a call to os.Exit(1).
func Info ¶
func Info(format string, args ...interface{})
Info logs a message using INFO as log level.
func Infof ¶
func Infof(format string, args ...interface{})
Infof logs a message using INFO as log level and a format string.
func InitLogger ¶
func InitLogger()
Inizializza il logger interno: esegue setup di log su disco e/o su terminale secondo la configurazione
func Notice ¶
func Notice(format string, args ...interface{})
Notice logs a message using NOTICE as log level.
func Noticef ¶
func Noticef(format string, args ...interface{})
Noticef logs a message using NOTICE as log level and a format string.
func Panic ¶
func Panic(args ...interface{})
Panic is equivalent to l.Critical(fmt.Sprint()) followed by a call to panic().
func Panicf ¶
func Panicf(format string, args ...interface{})
Panicf is equivalent to l.Critical followed by a call to panic().
Types ¶
This section is empty.