Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJournalDWriter ¶
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.
Example ¶
package main import ( "github.com/rs/zerolog" "github.com/rs/zerolog/journald" ) func main() { log := zerolog.New(journald.NewJournalDWriter()) log.Info().Str("foo", "bar").Uint64("small", 123).Float64("float", 3.14).Uint64("big", 1152921504606846976).Msg("Journal Test") }
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.