summaryrefslogtreecommitdiffstats
path: root/src/go/logger/journal_linux.go
blob: f55006bdbd6662b8fac34bfb6454f61aed16d707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: GPL-3.0-or-later

//go:build linux

package logger

import (
	"github.com/coreos/go-systemd/v22/journal"
)

func isStderrConnectedToJournal() bool {
	ok, _ := journal.StderrIsJournalStream()
	return ok
}