Versions in this module Expand all Collapse all v0 v0.3.0 May 28, 2025 Changes in this version + const DEBUG + const ERROR + const FATAL + const INFO + const TRACE + const WARN + var ErrFieldsMissing = errors.New("could not convert line type due to missing fields") + func LooksLikeDataIncludedLine(envelope any) bool + func LooksLikeEmbeddedDataIncludedLine(envelope any) bool + func LooksLikeErrorLine(envelope any) bool + func LooksLikeExtraAttributesLine(envelope any) bool + type Error struct + Code string + ErrNo int + Message string + Path string + Stack []string + Syscall string + type ErrorLine struct + Error Error + Hostname string + LogLevel *Level + LogMessage string + Name string + Pid int + SourceComponent string + Time rfc3339.DateTime + Version int + func EnvelopeToError(envelope LineEnvelope) ErrorLine + type Level struct + func (l *Level) IsDebug() bool + func (l *Level) IsError() bool + func (l *Level) IsFatal() bool + func (l *Level) IsInfo() bool + func (l *Level) IsTrace() bool + func (l *Level) IsWarn() bool + func (l *Level) String() string + func (l *Level) UnmarshalJSON(data []byte) error + type LineEnvelope struct + Hostname string + LogLevel *Level + LogMessage string + Name string + OtherFields map[string]any + Pid int + SourceComponent string + Time rfc3339.DateTime + Version int + func (e *LineEnvelope) Component() string + func (e *LineEnvelope) GetEmbeddedData() (json.RawMessage, error) + func (e *LineEnvelope) Kind() common.Type + func (e *LineEnvelope) Level() common.LogLevel + func (e *LineEnvelope) Message() string + func (e *LineEnvelope) TimeStampString() string + func (e *LineEnvelope) UnmarshalJSON(data []byte) error