Documentation ¶
Index ¶
- Constants
- func Access(from, to string, status AccessStatus, reason string)
- func Debug(format string, v ...interface{})
- func Error(format string, v ...interface{})
- func Info(format string, v ...interface{})
- func InitAccessLogger(file string) error
- func InitErrorLogger(file string) error
- func SetLogLevel(level LogLevel)
- func Warning(format string, v ...interface{})
- type AccessStatus
- type LogLevel
Constants ¶
View Source
const ( AccessAccepted = AccessStatus("accepted") AccessRejected = AccessStatus("rejected") )
Variables ¶
This section is empty.
Functions ¶
func Access ¶ added in v0.9.1
func Access(from, to string, status AccessStatus, reason string)
Access writes an access log.
func Debug ¶
func Debug(format string, v ...interface{})
Debug outputs a debug log with given format and optional arguments.
func Error ¶
func Error(format string, v ...interface{})
Error outputs an error log with given format and optional arguments.
func Info ¶
func Info(format string, v ...interface{})
Info outputs an info log with given format and optional arguments.
func InitAccessLogger ¶ added in v0.9.1
InitAccessLogger initializes the access logger to write into the give file.
Types ¶
Click to show internal directories.
Click to hide internal directories.