mirror of
https://github.com/rclone/rclone.git
synced 2025-08-07 05:07:09 +02:00
This removes logrus which is not developed any more and replaces it with the new log/slog from the Go standard library. It implements its own slog Handler which is backwards compatible with all of rclone's previous logging modes.
18 lines
351 B
Go
18 lines
351 B
Go
// Syslog interface for non-Unix variants only
|
|
|
|
//go:build windows || nacl || plan9
|
|
|
|
package log
|
|
|
|
import (
|
|
"runtime"
|
|
|
|
"github.com/rclone/rclone/fs"
|
|
)
|
|
|
|
// Starts syslog if configured, returns true if it was started
|
|
func startSysLog(handler *OutputHandler) bool {
|
|
fs.Fatalf(nil, "--syslog not supported on %s platform", runtime.GOOS)
|
|
return false
|
|
}
|