Add syslog notifier
This commit is contained in:
parent
23a54e1ceb
commit
85207e0a77
5 changed files with 97 additions and 0 deletions
|
|
@ -16,5 +16,8 @@ func NewNotifier(ctx *base.Context) Notifier {
|
|||
if ctx.Config.LogFile != "" {
|
||||
return NewFile(ctx.Config.LogFile, ctx.Sessions)
|
||||
}
|
||||
if ctx.Config.SyslogFacility != "" {
|
||||
return NewSyslog(ctx.Config.SyslogFacility, ctx.Config.SyslogIdent, ctx.Sessions)
|
||||
}
|
||||
return NewConsole(ctx.Sessions)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue