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