github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/go-xorm/core/ilogger.go (about)

     1  package core
     2  
     3  type LogLevel int
     4  
     5  const (
     6  	// !nashtsai! following level also match syslog.Priority value
     7  	LOG_DEBUG LogLevel = iota
     8  	LOG_INFO
     9  	LOG_WARNING
    10  	LOG_ERR
    11  	LOG_OFF
    12  	LOG_UNKNOWN
    13  )
    14  
    15  // logger interface
    16  type ILogger interface {
    17  	Debug(v ...interface{})
    18  	Debugf(format string, v ...interface{})
    19  	Error(v ...interface{})
    20  	Errorf(format string, v ...interface{})
    21  	Info(v ...interface{})
    22  	Infof(format string, v ...interface{})
    23  	Warn(v ...interface{})
    24  	Warnf(format string, v ...interface{})
    25  
    26  	Level() LogLevel
    27  	SetLevel(l LogLevel)
    28  
    29  	ShowSQL(show ...bool)
    30  	IsShowSQL() bool
    31  }