mirror of
https://github.com/rclone/rclone.git
synced 2025-08-07 21:18:43 +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.
22 lines
384 B
Go
22 lines
384 B
Go
// Systemd interface for non-Unix variants only
|
|
|
|
//go:build !unix
|
|
|
|
package log
|
|
|
|
import (
|
|
"runtime"
|
|
|
|
"github.com/rclone/rclone/fs"
|
|
)
|
|
|
|
// Enables systemd logs if configured or if auto-detected
|
|
func startSystemdLog(handler *OutputHandler) bool {
|
|
fs.Fatalf(nil, "--log-systemd not supported on %s platform", runtime.GOOS)
|
|
return false
|
|
}
|
|
|
|
func isJournalStream() bool {
|
|
return false
|
|
}
|