Documentation ¶
Index ¶
- Constants
- func Debug(v ...interface{})
- func DebugV(v ...interface{})
- func DebugVf(format string, v ...interface{})
- func Debugf(format string, v ...interface{})
- func Dump(v ...interface{})
- func DumpV(v ...interface{})
- func Error(v ...interface{})
- func ErrorV(v ...interface{})
- func ErrorVf(format string, v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatal(v ...interface{})
- func FatalV(v ...interface{})
- func FatalVf(format string, v ...interface{})
- func Fatalf(format string, v ...interface{})
- func GetWriter() io.Writer
- func Log(name ...string) *glog.Logger
- func Print(v ...interface{})
- func PrintToFile(v ...interface{})
- func PrintV(v ...interface{})
- func PrintVf(format string, v ...interface{})
- func Printf(format string, v ...interface{})
- func PrintfToFile(format string, v ...interface{})
- func ShellRun(ctx context.Context, cmd string) error
- func Warning(v ...interface{})
- func WarningV(v ...interface{})
- func WarningVf(format string, v ...interface{})
- func Warningf(format string, v ...interface{})
- type ILogger
- type LoggerCore
Constants ¶
View Source
const ( ErrorHead = "[Error] " DebugHead = "[Debug] " WarningHead = "[Warning] " )
Variables ¶
This section is empty.
Functions ¶
func PrintToFile ¶
func PrintToFile(v ...interface{})
func PrintfToFile ¶
func PrintfToFile(format string, v ...interface{})
Types ¶
type LoggerCore ¶ added in v0.5.0
type LoggerCore struct {
// contains filtered or unexported fields
}
func NewLoggerCore ¶ added in v0.5.0
func NewLoggerCore(name ...string) LoggerCore
func NewLoggerCoreWithPrefix ¶ added in v0.5.0
func NewLoggerCoreWithPrefix(prefix string, name ...string) LoggerCore
func (LoggerCore) Clone ¶ added in v0.5.0
func (l LoggerCore) Clone() *glog.Logger
func (LoggerCore) Log ¶ added in v1.0.1
func (l LoggerCore) Log() *glog.Logger
Click to show internal directories.
Click to hide internal directories.