MCPcopy
hub / github.com/rs/zerolog / NewJournalDWriter

Function NewJournalDWriter

journald/journald.go:45–47  ·  view source on GitHub ↗

NewJournalDWriter returns a zerolog log destination to be used as parameter to New() calls. Writing logs to this writer will send the log messages to journalD running in this system.

()

Source from the content-addressed store, hash-verified

43// to this writer will send the log messages to journalD
44// running in this system.
45func NewJournalDWriter() io.Writer {
46 return journalWriter{}
47}
48
49type journalWriter struct {
50}

Callers 7

ExampleNewJournalDWriterFunction · 0.85
TestMultiWriteFunction · 0.85
TestWriteWithAllLevelsFunction · 0.85
TestWriteOutputsFunction · 0.85

Calls

no outgoing calls

Tested by 7

ExampleNewJournalDWriterFunction · 0.68
TestMultiWriteFunction · 0.68
TestWriteWithAllLevelsFunction · 0.68
TestWriteOutputsFunction · 0.68