Documentation ¶
Overview ¶
Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
Index ¶
- Variables
- func Crit(v ...interface{})
- func Critf(format string, v ...interface{})
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func Init(lvl string, logdate bool)
- func Loglevel() string
- func Panic(v ...interface{})
- func Panicf(format string, v ...interface{})
- func Print(v ...interface{})
- func Printf(format string, v ...interface{})
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DebugWriter io.Writer = os.Stderr InfoWriter io.Writer = os.Stderr WarnWriter io.Writer = os.Stderr ErrWriter io.Writer = os.Stderr CritWriter io.Writer = os.Stderr )
View Source
var ( DebugPrefix string = "<7>[DEBUG] " InfoPrefix string = "<6>[INFO] " WarnPrefix string = "<4>[WARNING] " ErrPrefix string = "<3>[ERROR] " CritPrefix string = "<2>[CRITICAL] " )
View Source
var ( DebugLog *log.Logger = log.New(DebugWriter, DebugPrefix, log.LstdFlags) InfoLog *log.Logger = log.New(InfoWriter, InfoPrefix, log.LstdFlags|log.Lshortfile) WarnLog *log.Logger = log.New(WarnWriter, WarnPrefix, log.LstdFlags|log.Lshortfile) ErrLog *log.Logger = log.New(ErrWriter, ErrPrefix, log.LstdFlags|log.Llongfile) CritLog *log.Logger = log.New(CritWriter, CritPrefix, log.LstdFlags|log.Llongfile) )
Functions ¶
func Panicf ¶
func Panicf(format string, v ...interface{})
Writes panic stacktrace, but keeps application alive
func Print ¶
func Print(v ...interface{})
Uses Info() -> If errorpath required at some point: Will need own writer with 'Output(2, out)' to correctly render path
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.