You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

150 lines
3.8 KiB
Go

package log
7 years ago
// Default is a default Logger instance
var Default = New()
// IsDebugEnabled indicates whether output message
7 years ago
func IsDebugEnabled() bool {
return Default.IsDebugEnabled()
}
// IsInfoEnabled indicates whether output message
7 years ago
func IsInfoEnabled() bool {
return Default.IsInfoEnabled()
}
// IsPrintEnabled indicates whether output message
7 years ago
func IsPrintEnabled() bool {
return Default.IsPrintEnabled()
}
// IsWarnEnabled indicates whether output message
7 years ago
func IsWarnEnabled() bool {
return Default.IsWarnEnabled()
}
// IsErrorEnabled indicates whether output message
7 years ago
func IsErrorEnabled() bool {
return Default.IsErrorEnabled()
}
// IsPanicEnabled indicates whether output message
7 years ago
func IsPanicEnabled() bool {
return Default.IsPanicEnabled()
}
// IsFatalEnabled indicates whether output message
7 years ago
func IsFatalEnabled() bool {
return Default.IsFatalEnabled()
}
// IsDisabled indicates whether output message
7 years ago
func IsDisabled() bool {
return Default.IsDisabled()
}
// Debug outputs message, Arguments are handled by fmt.Sprint
7 years ago
func Debug(obj ...interface{}) {
Default.Debug(obj...)
}
// Info outputs message, Arguments are handled by fmt.Sprint
7 years ago
func Info(obj ...interface{}) {
Default.Info(obj...)
}
// Print outputs message, Arguments are handled by fmt.Sprint
7 years ago
func Print(obj ...interface{}) {
Default.Print(obj...)
}
// Warn outputs message, Arguments are handled by fmt.Sprint
7 years ago
func Warn(obj ...interface{}) {
Default.Warn(obj...)
}
// Error outputs message, Arguments are handled by fmt.Sprint
7 years ago
func Error(obj ...interface{}) {
Default.Error(obj...)
}
// Panic outputs message, and followed by a call to panic() Arguments are handled by fmt.Sprint
7 years ago
func Panic(obj ...interface{}) {
Default.Panic(obj...)
}
// Fatal outputs message, and followed by a call to os.Exit(1) Arguments are handled by fmt.Sprint
7 years ago
func Fatal(obj ...interface{}) {
Default.Fatal(obj...)
}
// Debugln outputs message, Arguments are handled by fmt.Sprintln
7 years ago
func Debugln(obj ...interface{}) {
Default.Debugln(obj...)
}
// Infoln outputs message, Arguments are handled by fmt.Sprintln
7 years ago
func Infoln(obj ...interface{}) {
Default.Infoln(obj...)
}
// Println outputs message, Arguments are handled by fmt.Sprintln
7 years ago
func Println(obj ...interface{}) {
Default.Println(obj...)
}
// Warnln outputs message, Arguments are handled by fmt.Sprintln
7 years ago
func Warnln(obj ...interface{}) {
Default.Warnln(obj...)
}
// Errorln outputs message, Arguments are handled by fmt.Sprintln
7 years ago
func Errorln(obj ...interface{}) {
Default.Errorln(obj...)
}
// Panicln outputs message and followed by a call to panic(), Arguments are handled by fmt.Sprintln
7 years ago
func Panicln(obj ...interface{}) {
Default.Panicln(obj...)
}
// Fatalln outputs message and followed by a call to os.Exit(1), Arguments are handled by fmt.Sprintln
7 years ago
func Fatalln(obj ...interface{}) {
Default.Fatalln(obj...)
}
// Debugf outputs message, Arguments are handled by fmt.Sprintf
func Debugf(msg string, args ...interface{}) {
7 years ago
Default.Debugf(msg, args...)
}
// Infof outputs message, Arguments are handled by fmt.Sprintf
func Infof(msg string, args ...interface{}) {
7 years ago
Default.Infof(msg, args...)
}
// Printf outputs message, Arguments are handled by fmt.Sprintf
7 years ago
func Printf(msg string, args ...interface{}) {
Default.Printf(msg, args...)
}
// Warnf outputs message, Arguments are handled by fmt.Sprintf
func Warnf(msg string, args ...interface{}) {
7 years ago
Default.Warnf(msg, args...)
}
// Errorf outputs message, Arguments are handled by fmt.Sprintf
func Errorf(msg string, args ...interface{}) {
7 years ago
Default.Errorf(msg, args...)
}
// Panicf outputs message and followed by a call to panic(), Arguments are handled by fmt.Sprintf
7 years ago
func Panicf(msg string, args ...interface{}) {
Default.Panicf(msg, args...)
}
// Fatalf outputs message and followed by a call to os.Exit(1), Arguments are handled by fmt.Sprintf
func Fatalf(msg string, args ...interface{}) {
7 years ago
Default.Fatalf(msg, args...)
}