mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-22 15:40:23 +00:00
15 lines
314 B
Go
15 lines
314 B
Go
|
// +build linux
|
||
|
|
||
|
package logger
|
||
|
|
||
|
import (
|
||
|
"github.com/rs/zerolog"
|
||
|
"github.com/rs/zerolog/journald"
|
||
|
)
|
||
|
|
||
|
// InitJournalDLogger configures the logger to write to journald
|
||
|
func InitJournalDLogger(level zerolog.Level) {
|
||
|
logger = zerolog.New(journald.NewJournalDWriter()).Level(level)
|
||
|
consoleLogger = zerolog.Nop()
|
||
|
}
|