tclog

package module
v0.0.0-...-af98a38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2016 License: GPL-3.0 Imports: 9 Imported by: 0

README

#tclog

Documentation

Index

Constants

View Source
const (
	TLevelOFF = iota
	TLevelFATAL
	TLevelERROR
	TLevelWARN
	TLevelINFO
	TLevelDEBUG
	TLevelALL
)
View Source
const (
	Ldate         = 1 << iota     // the date in the local time zone: 2009/01/23
	Ltime                         // the time in the local time zone: 01:23:23
	Lmicroseconds                 // microsecond resolution: 01:23:23.123123.  assumes Ltime.
	Llongfile                     // full file name and line number: /a/b/c/d.go:23
	Lshortfile                    // final file name element and line number: d.go:23. overrides Llongfile
	LUTC                          // if Ldate or Ltime is set, use UTC rather than the local time zone
	LstdFlags     = Ldate | Ltime // initial values for the standard logger
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TLogGo

type TLogGo struct {
	// contains filtered or unexported fields
}

func New

func New(logfile string, showallpath bool) *TLogGo

func (*TLogGo) Debug

func (l *TLogGo) Debug(v ...interface{})

func (*TLogGo) Debugf

func (l *TLogGo) Debugf(format string, v ...interface{})

func (*TLogGo) Debugln

func (l *TLogGo) Debugln(v ...interface{})

func (*TLogGo) Error

func (l *TLogGo) Error(v ...interface{})

func (*TLogGo) Errorf

func (l *TLogGo) Errorf(format string, v ...interface{})

func (*TLogGo) Errorln

func (l *TLogGo) Errorln(v ...interface{})

func (*TLogGo) Fatal

func (l *TLogGo) Fatal(v ...interface{})

Fatal is equivalent to l.Print() followed by a call to os.Exit(1).

func (*TLogGo) Fatalf

func (l *TLogGo) Fatalf(format string, v ...interface{})

func (*TLogGo) Fatalln

func (l *TLogGo) Fatalln(v ...interface{})

func (*TLogGo) Flags

func (l *TLogGo) Flags() int

func (*TLogGo) Info

func (l *TLogGo) Info(v ...interface{})

func (*TLogGo) Infof

func (l *TLogGo) Infof(format string, v ...interface{})

func (*TLogGo) Infoln

func (l *TLogGo) Infoln(v ...interface{})

func (*TLogGo) Prefix

func (l *TLogGo) Prefix() string

func (*TLogGo) Print

func (l *TLogGo) Print(v ...interface{})

func (*TLogGo) Printf

func (l *TLogGo) Printf(format string, v ...interface{})

func (*TLogGo) Println

func (l *TLogGo) Println(v ...interface{})

func (*TLogGo) SetFlags

func (l *TLogGo) SetFlags(flag int)

func (*TLogGo) SetLogFileMaxSize

func (self *TLogGo) SetLogFileMaxSize(v int)

参数单数为兆

func (*TLogGo) SetLogLevel

func (self *TLogGo) SetLogLevel(v int)

func (*TLogGo) SetLogOnConsle

func (self *TLogGo) SetLogOnConsle(v bool)

func (*TLogGo) SetPrefix

func (l *TLogGo) SetPrefix(prefix string)

func (*TLogGo) Warn

func (l *TLogGo) Warn(v ...interface{})

func (*TLogGo) Warnf

func (l *TLogGo) Warnf(format string, v ...interface{})

func (*TLogGo) Warnln

func (l *TLogGo) Warnln(v ...interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL