package main import ( "io" "log/slog" "sync" ) // daemonTestLogger writes journal lines without a part prefix, so tests can // check the level and event without a clock. func daemonTestLogger(out io.Writer) *slog.Logger { return slog.New(&DaemonLogHandler{ out: out, journal: true, mutex: &sync.Mutex{}, }) }