Documentation ¶
Index ¶
- Constants
- Variables
- func Close()
- func CloseConsole(ok bool)
- func Debug(args ...interface{})
- func Debugf(fmtstr string, args ...interface{})
- func Enter(args ...interface{})
- func Error(args ...interface{})
- func Errorf(fmtstr string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(fmtstr string, args ...interface{})
- func Info(args ...interface{})
- func Infof(fmtstr string, args ...interface{})
- func Json(args ...interface{})
- func JsonDebugString(v interface{}) string
- func Leave() (h, m, s int, ms float32)
- func Null(fmtstr string, args ...interface{})
- func Open(strUrl string, opts ...Option) bool
- func Panic(args ...interface{})
- func Report(args ...interface{}) string
- func SetFileSize(size int)
- func SetLevel(level interface{})
- func SetMaxBackup(nMaxBackups int)
- func Struct(args ...interface{})
- func Warn(args ...interface{})
- func Warnf(fmtstr string, args ...interface{})
- func Warning(args ...interface{})
- func Warningf(fmtstr string, args ...interface{})
- type LogContent
- type LogJson
- type LogUrl
- type Option
Constants ¶
View Source
const ( LEVEL_DEBUG = 0 LEVEL_INFO = 1 LEVEL_WARN = 2 LEVEL_ERROR = 3 LEVEL_FATAL = 4 LEVEL_PANIC = 5 )
View Source
const (
EXPIRE_TIME_MICRO_SECONDS = 24 * 3600 * 1e6
)
Variables ¶
View Source
var ( FUNCNAME_ALL = "all" FUNCNAME_NIL = "" )
View Source
var LevelName = []string{"[DEBUG]", "[INFO]", "[WARN]", "[ERROR]", "[FATAL]"}
Functions ¶
func JsonDebugString ¶
func JsonDebugString(v interface{}) string
func Report ¶
func Report(args ...interface{}) string
args: a string of function name or nil for all
Types ¶
type LogContent ¶
type LogJson ¶
type LogJson struct {
LogCon LogContent `json:"log"`
}
Click to show internal directories.
Click to hide internal directories.