package export

import "github.com/dotcloud/docker/daemon/logger/journald/internal/export"

Package export implements a serializer for the systemd Journal Export Format as documented at https://systemd.io/JOURNAL_EXPORT_FORMATS/

Index

Functions

func WriteEndOfEntry

func WriteEndOfEntry(w io.Writer) error

WriteEndOfEntry terminates the journal entry.

func WriteField

func WriteField(w io.Writer, variable, value string) error

WriteField writes the field serialized to Journal Export format to w.

The variable name must consist only of uppercase characters, numbers and underscores. No validation or sanitization is performed.

Source Files

export.go

Version
v26.0.0-rc3+incompatible
Published
Mar 19, 2024
Platform
linux/amd64
Imports
4 packages
Last checked
1 minute ago

Tools for package owners.