Documentation ¶
Index ¶
- Constants
- type Config
- func (c Config) AccessLog(v interface{})
- func (c Config) ApplicationLogf(format string, v ...interface{})
- func (c *Config) EventLog(v interface{})
- func (c *Config) SetAccessLog(p string) error
- func (c *Config) SetAccessLogWriter(e *json.Encoder) *Config
- func (c *Config) SetApplicationLog(p string) error
- func (c *Config) SetApplicationLogWriter(l *log.Logger) *Config
- func (c *Config) SetEventLog(p string) error
- func (c *Config) SetEventLogWriter(e *json.Encoder) *Config
- type Loggers
Constants ¶
const ( //AccessLog is the access log file name AccessLog = "access.log" //AppLog is the application log file name AppLog = "authenvoy.log" //EventLog is the event log file name EventLog = "event.log" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config holds the application's configuration values and loggers.
func (Config) AccessLog ¶
func (c Config) AccessLog(v interface{})
AccessLog write the value provided to the access log.
func (Config) ApplicationLogf ¶
ApplicationLogf formats according to a format specifier and writes the value to the application log.
func (*Config) EventLog ¶
func (c *Config) EventLog(v interface{})
EventLog write the value provided to the access log.
func (*Config) SetAccessLog ¶
SetAccessLog sets the access log to the file path specified. The following values special values can be used:
stdout
stderr
null - discard log lines
func (*Config) SetAccessLogWriter ¶
SetAccessLogWriter sets the access log lines to be written to the JSON encoder provided.
func (*Config) SetApplicationLog ¶
SetApplicationLog sets the application log to the file path specified. The following values special values can be used:
stdout
stderr
null - discard log lines
func (*Config) SetApplicationLogWriter ¶
SetApplicationLogWriter sets the application log lines to be written to the Logger provided.
func (*Config) SetEventLog ¶
SetEventLog sets the access log to the file path specified. The following values special values can be used:
stdout
stderr
null - discard log lines
type Loggers ¶
type Loggers struct { Event string `json:"Event"` EventWriter *json.Encoder `json:"-"` Application string `json:"Application"` ApplicationWriter *log.Logger `json:"-"` Access string `json:"Access"` AccessWriter *json.Encoder `json:"-"` }
Loggers holds the logging configuration for the application.