mirror of
https://gitee.com/johng/gf.git
synced 2024-12-02 12:17:53 +08:00
123 lines
2.7 KiB
Go
123 lines
2.7 KiB
Go
|
// Copyright 2017 gf Author(https://github.com/gogf/gf). All Rights Reserved.
|
||
|
//
|
||
|
// This Source Code Form is subject to the terms of the MIT License.
|
||
|
// If a copy of the MIT was not distributed with this file,
|
||
|
// You can obtain one at https://github.com/gogf/gf.
|
||
|
|
||
|
package glog
|
||
|
|
||
|
func Print(v ...interface{}) {
|
||
|
logger.Print(v ...)
|
||
|
}
|
||
|
|
||
|
func Printf(format string, v ...interface{}) {
|
||
|
logger.Printf(format, v ...)
|
||
|
}
|
||
|
|
||
|
func Println(v ...interface{}) {
|
||
|
logger.Println(v ...)
|
||
|
}
|
||
|
|
||
|
func Printfln(format string, v ...interface{}) {
|
||
|
logger.Printfln(format, v ...)
|
||
|
}
|
||
|
|
||
|
// Fatal prints the logging content with [FATA] header and newline, then exit the current process.
|
||
|
func Fatal(v ...interface{}) {
|
||
|
logger.Fatal(v ...)
|
||
|
}
|
||
|
|
||
|
// Fatalf prints the logging content with [FATA] header and custom format, then exit the current process.
|
||
|
func Fatalf(format string, v ...interface{}) {
|
||
|
logger.Fatalf(format, v ...)
|
||
|
}
|
||
|
|
||
|
// Fatalf prints the logging content with [FATA] header, custom format and newline, then exit the current process.
|
||
|
func Fatalfln(format string, v ...interface{}) {
|
||
|
logger.Fatalfln(format, v ...)
|
||
|
}
|
||
|
|
||
|
func Panic(v ...interface{}) {
|
||
|
logger.Panic(v ...)
|
||
|
}
|
||
|
|
||
|
func Panicf(format string, v ...interface{}) {
|
||
|
logger.Panicf(format, v ...)
|
||
|
}
|
||
|
|
||
|
func Panicfln(format string, v ...interface{}) {
|
||
|
logger.Panicfln(format, v ...)
|
||
|
}
|
||
|
|
||
|
func Info(v ...interface{}) {
|
||
|
logger.Info(v...)
|
||
|
}
|
||
|
|
||
|
func Debug(v ...interface{}) {
|
||
|
logger.Debug(v...)
|
||
|
}
|
||
|
|
||
|
func Notice(v ...interface{}) {
|
||
|
logger.Notice(v...)
|
||
|
}
|
||
|
|
||
|
func Warning(v ...interface{}) {
|
||
|
logger.Warning(v...)
|
||
|
}
|
||
|
|
||
|
func Error(v ...interface{}) {
|
||
|
logger.Error(v...)
|
||
|
}
|
||
|
|
||
|
func Critical(v ...interface{}) {
|
||
|
logger.Critical(v...)
|
||
|
}
|
||
|
|
||
|
func Infof(format string, v ...interface{}) {
|
||
|
logger.Infof(format, v...)
|
||
|
}
|
||
|
|
||
|
func Debugf(format string, v ...interface{}) {
|
||
|
logger.Debugf(format, v...)
|
||
|
}
|
||
|
|
||
|
func Noticef(format string, v ...interface{}) {
|
||
|
logger.Noticef(format, v...)
|
||
|
}
|
||
|
|
||
|
func Warningf(format string, v ...interface{}) {
|
||
|
logger.Warningf(format, v...)
|
||
|
}
|
||
|
|
||
|
func Errorf(format string, v ...interface{}) {
|
||
|
logger.Errorf(format, v...)
|
||
|
}
|
||
|
|
||
|
func Criticalf(format string, v ...interface{}) {
|
||
|
logger.Criticalf(format, v...)
|
||
|
}
|
||
|
|
||
|
func Infofln(format string, v ...interface{}) {
|
||
|
logger.Infofln(format, v...)
|
||
|
}
|
||
|
|
||
|
func Debugfln(format string, v ...interface{}) {
|
||
|
logger.Debugfln(format, v...)
|
||
|
}
|
||
|
|
||
|
func Noticefln(format string, v ...interface{}) {
|
||
|
logger.Noticefln(format, v...)
|
||
|
}
|
||
|
|
||
|
func Warningfln(format string, v ...interface{}) {
|
||
|
logger.Warningfln(format, v...)
|
||
|
}
|
||
|
|
||
|
func Errorfln(format string, v ...interface{}) {
|
||
|
logger.Errorfln(format, v...)
|
||
|
}
|
||
|
|
||
|
func Criticalfln(format string, v ...interface{}) {
|
||
|
logger.Criticalfln(format, v...)
|
||
|
}
|