Documentation ¶
Index ¶
- Constants
- Variables
- func Error(msg interface{})
- func ErrorFields(msg string, fields Fields)
- func GetConnLogger() *log.Logger
- func GetConsoleLogger() *log.Logger
- func Info(msg interface{})
- func InfoFields(msg string, fields Fields)
- func Locate(skip int) (filename string, line int)
- func SetLogLevel(level string)
- type Fields
- type LoggingRemoteOpts
Constants ¶
View Source
const ( DEBUG = "DEBUG" INFO = "INFO" ERROR = "ERROR" )
Only support three log levels
Variables ¶
View Source
var (
Conn *net.TCPConn
)
View Source
var (
LogLevel string
)
Functions ¶
func ErrorFields ¶
func GetConnLogger ¶
func GetConsoleLogger ¶
func SetLogLevel ¶
func SetLogLevel(level string)
SetLogLevel sets log level for logrus and local console. Accept info and error level. By default, it is info level.
Types ¶
Click to show internal directories.
Click to hide internal directories.