Documentation ¶
Index ¶
- Constants
- func SetFlags(flag int)
- func SetOutput(w io.Writer)
- func SetOutputLevel(lvl int)
- type Logger
- func (xlog *Logger) Debug(v ...interface{})
- func (xlog *Logger) Debugf(format string, v ...interface{})
- func (xlog *Logger) Error(v ...interface{})
- func (xlog *Logger) Errorf(format string, v ...interface{})
- func (xlog *Logger) Fatal(v ...interface{})
- func (xlog *Logger) Fatalf(format string, v ...interface{})
- func (xlog *Logger) Fatalln(v ...interface{})
- func (xlog *Logger) Info(v ...interface{})
- func (xlog *Logger) Infof(format string, v ...interface{})
- func (xlog *Logger) Panic(v ...interface{})
- func (xlog *Logger) Panicf(format string, v ...interface{})
- func (xlog *Logger) Panicln(v ...interface{})
- func (xlog *Logger) Print(v ...interface{})
- func (xlog *Logger) Printf(format string, v ...interface{})
- func (xlog *Logger) Println(v ...interface{})
- func (xlog *Logger) SingleStack(v ...interface{})
- func (xlog *Logger) Spawn(child string) *Logger
- func (xlog *Logger) Stack(v ...interface{})
- func (xlog *Logger) Warn(v ...interface{})
- func (xlog *Logger) Warnf(format string, v ...interface{})
Constants ¶
View Source
const ( Ldate = log.Ldate Ltime = log.Ltime Lmicroseconds = log.Lmicroseconds Llongfile = log.Llongfile Lshortfile = log.Lshortfile Lmodule = log.Lmodule Llevel = log.Llevel LstdFlags = log.LstdFlags Ldefault = log.Ldefault )
View Source
const ( Ldebug = log.Ldebug Linfo = log.Linfo Lwarn = log.Lwarn Lerror = log.Lerror Lpanic = log.Lpanic Lfatal = log.Lfatal )
Variables ¶
This section is empty.
Functions ¶
func SetOutputLevel ¶
func SetOutputLevel(lvl int)
Types ¶
type Logger ¶
type Logger struct {
ReqId string
}
func (*Logger) Fatal ¶
func (xlog *Logger) Fatal(v ...interface{})
Fatal is equivalent to Print() followed by a call to os.Exit(1).
func (*Logger) Fatalln ¶
func (xlog *Logger) Fatalln(v ...interface{})
Fatalln is equivalent to Println() followed by a call to os.Exit(1).
func (*Logger) Panic ¶
func (xlog *Logger) Panic(v ...interface{})
Panic is equivalent to Print() followed by a call to panic().
func (*Logger) Panicln ¶
func (xlog *Logger) Panicln(v ...interface{})
Panicln is equivalent to Println() followed by a call to panic().
func (*Logger) Print ¶
func (xlog *Logger) Print(v ...interface{})
Print calls Output to print to the standard Logger. Arguments are handled in the manner of fmt.Print.
func (*Logger) Printf ¶
Printf calls Output to print to the standard Logger. Arguments are handled in the manner of fmt.Printf.
func (*Logger) Println ¶
func (xlog *Logger) Println(v ...interface{})
Println calls Output to print to the standard Logger. Arguments are handled in the manner of fmt.Println.
func (*Logger) SingleStack ¶
func (xlog *Logger) SingleStack(v ...interface{})
Click to show internal directories.
Click to hide internal directories.