Documentation
¶
Index ¶
- Constants
- func Debug(v ...interface{})
- func Error(v ...interface{})
- func Fatal(v ...interface{})
- func Info(v ...interface{})
- func LogToStdout(b bool)
- func Public(req http.Request, statusCode int, contentLength int, duration time.Duration)
- func SetAppLogFolder(path string)
- func SetAppLogLevel(level int)
- func SetAppLogMaxAge(age int)
- func SetAppLogMaxSize(size int64)
- func SetPublicLogFolder(path string)
- func SetPublicLogMaxAge(age int)
- func SetPublicLogMaxSize(size int64)
- func ShowLineNumbers(b bool)
- func Start() error
- func Stop()
- func Warn(v ...interface{})
Constants ¶
View Source
const DEBUG = 0
View Source
const ERROR = 3
View Source
const FATAL = 5
View Source
const INFO = 1
View Source
const NUM_LOGGING_ROUTINES = 5
View Source
const WARN = 2
Variables ¶
This section is empty.
Functions ¶
func Fatal ¶
func Fatal(v ...interface{})
Logs the message synchronously and terminates the app with exit code 1.
func LogToStdout ¶
func LogToStdout(b bool)
func SetAppLogFolder ¶
func SetAppLogFolder(path string)
func SetAppLogLevel ¶
func SetAppLogLevel(level int)
func SetAppLogMaxAge ¶
func SetAppLogMaxAge(age int)
func SetAppLogMaxSize ¶
func SetAppLogMaxSize(size int64)
func SetPublicLogFolder ¶
func SetPublicLogFolder(path string)
func SetPublicLogMaxAge ¶
func SetPublicLogMaxAge(age int)
func SetPublicLogMaxSize ¶
func SetPublicLogMaxSize(size int64)
func ShowLineNumbers ¶
func ShowLineNumbers(b bool)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.