Add persistent logging: syslog for unix, file for windows (#6)

This commit is contained in:
Maxim Baz
2018-04-13 01:59:46 +02:00
committed by GitHub
parent b0f774585c
commit eafa71cc9b
7 changed files with 83 additions and 8 deletions

View File

@@ -0,0 +1,10 @@
// +build nacl,plan9
package persistentlog
import log "github.com/sirupsen/logrus"
// AddPersistentLogHook configures persisting logs, not supported on these systems
func AddPersistentLogHook() {
log.Warn("Persistent logging is not implemented on this OS")
}