Documentation
¶
Index ¶
Constants ¶
View Source
const ( // LevelAll enables all logs. LevelAll = iota // LevelDebug logs are usually disabled in production. LevelDebug // LevelInfo is the default logging priority. LevelInfo // LevelWarn . LevelWarn // LevelError . LevelError // LevelNone disables all logs. LevelNone )
Variables ¶
View Source
var ( // TimeFormat is used to format time parameters. TimeFormat = "2006/01/02 15:04:05.000" // Output is used to receive log output. Output = os.Stdout // DefaultLogger is the default logger and is used by arpc. DefaultLogger Logger = &logger{level: LevelInfo} )
Functions ¶
func Debug ¶
func Debug(format string, v ...interface{})
Debug uses DefaultLogger to log a message at LevelDebug.
func Error ¶
func Error(format string, v ...interface{})
Error uses DefaultLogger to log a message at LevelError.
Types ¶
Click to show internal directories.
Click to hide internal directories.