mirror of
https://github.com/slackhq/nebula.git
synced 2026-05-16 04:47:38 +02:00
18 lines
333 B
Go
18 lines
333 B
Go
//go:build !windows
|
|
// +build !windows
|
|
|
|
package main
|
|
|
|
import (
|
|
"log/slog"
|
|
"os"
|
|
|
|
"github.com/slackhq/nebula/logging"
|
|
)
|
|
|
|
// newPlatformLogger returns a *slog.Logger that writes to stdout. Non-Windows
|
|
// platforms have no special sink to integrate with.
|
|
func newPlatformLogger() *slog.Logger {
|
|
return logging.NewLogger(os.Stdout)
|
|
}
|