Documentation ¶
Index ¶
- func CloseLog()
- func LogChat(l ILogger, m string, chs ...chan []byte)
- func LogDebug(l ILogger, m string, chs ...chan []byte)
- func LogError(l ILogger, m string, chs ...chan []byte)
- func LogHTTP(l ILogger, rc int, r *http.Request, chs ...chan []byte)
- func LogInfo(l ILogger, m string, chs ...chan []byte)
- func LogInit(l ILogger, m string, chs ...chan []byte)
- func LogOutput(l ILogger, m string, chs ...chan []byte)
- func LogVerbose(l ILogger, m string, chs ...chan []byte)
- func LogWarning(l ILogger, m string, chs ...chan []byte)
- func SetFile(path string)
- type ILogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogDebug ¶
LogDebug logs a debug message if the loglevel of the given object is three or greater
func LogHTTP ¶
LogHTTP logs an HTTP response code and string. Provides formatting for the response, and will output if the loglevel of the object is 1 or greater
func LogOutput ¶
LogOutput logs the given string with a timestamp and no prefix. Logging does not depend on the current loglevel of an object
func LogVerbose ¶
LogVerbose logs a message only when the loglevel of an object is 2 or greater
func LogWarning ¶
LogWarning logs a warning
Types ¶
Click to show internal directories.
Click to hide internal directories.