modulepackage
0.0.0-20170911131010-3b7397bdd375
Repository: https://github.com/larsfronius/go-ledge.git
Documentation: pkg.go.dev
# Functions
Debug prints an event at the Debug Level.
DebugWriter returns a new io.Writer that will log output to the writer inside the WriterOutput field of an Entry, using the associated Event, at the Debug Level.
Error prints an event at the Error Level.
ErrorWriter returns a new io.Writer that will log output to the writer inside the WriterOutput field of an Entry, using the associated Event, at the Error Level.
Fatal prints an event at the Fatal Level.
Info prints an event at the Info Level.
InfoWriter returns a new io.Writer that will log output to the writer inside the WriterOutput field of an Entry, using the associated Event, at the Info Level.
MergeSpecifications merges multiple Specifications into a single specification.
NewBlockingEntryReader returns a new BlockingEntryReader.
NewEntryReader returns a new EntryReader.
NewFakeLogger returns a new FakeLogger.
NewLogger creates a new Logger.
NewLogrusTextMarshaller returns a Marshaller that uses Logrus' TextFormatter.
NewProtoUnmarshaller returns a new Unmarshaller that unmarshals Entry Objects marshalled with ProtoMarshaller.
NewRequireContextFilter returns a filter that only selects Entry objects with the given Context.
NewTextMarshaller returns a Marshaller that marshals output in a human-readable manner.
NewTextMarshallerV2 returns a Marshaller that marshals output in a human-readable manner.
NewTextMarshallerV3 returns a Marshaller that marshals output in a human-readable manner.
Panic prints an event at the Panic Level.
SetLogger sets the global Logger.
Unstructured returns the associated UnstructuredLogger.
Warn prints an event at the Warn Level.
WarnWriter returns a new io.Writer that will log output to the writer inside the WriterOutput field of an Entry, using the associated Event, at the Warn Level.
WithContext returns a new Logger with the given Context attached.
# Constants
DefaultColumns is the default number of columns to use for the V3 text marshaller.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
DebugFilter is a Filter that only includes Entries with a Level of at least Level_DEBUG.
DefaultEventTypes are the Event types included with every Logger, EntryReader, and BlockingEntryReader by default.
ErrorFilter is a Filter that only includes Entries with a Level of at least Level_ERROR.
FatalFilter is a Filter that only includes Entries with a Level of at least Level_FATAL.
InfoFilter is a Filter that only includes Entries with a Level of at least Level_INFO.
JSONMarshaller is a Marshaller that marshales Entries in JSON, with shorthand notation for Context and Entry types.
No description provided by the author
No description provided by the author
PanicFilter is a Filter that only includes Entries with a Level of at least Level_PANIC.
ProtoMarshaller is a Marshaller for Protocol Buffers.
RPCDecoder is a Decoder that decodes data encoded with RPCEncoder.
RPCEncoder is an Encoder that wraps data in a simple RPC format.
WarnFilter is a Filter that only includes Entries with a Level of at least Level_WARN.
# Structs
Entry is the type that is marshalled and unmarshalled into and from log messages.
EntryReaderOptions specifies the options to be used when creating an EntryReader.
EntryResponse is a response from an EntryReader.
No description provided by the author
LoggerOptions specifies the options to be used when creating a Logger.
No description provided by the author
Specification specifies the Context and Event types that will be used with a Logger, EntryReader, or BlockingEntryReader.
TextMarshallerOptions provides options for creating TextMarshallers.
No description provided by the author
# Interfaces
BlockingEntryReader reads Entry objects in a blocking manner until the input stream is finished.
A Context is attached to a Logger and included as part of every Entry a Logger outputs.
Decoder decodes an input stream into separate byte slices that represent marshalled Entry objects.
Encoder encodes marshalled byte slices to a writer, optionally adding output.
EntryReader reads Entry objects from an input stream.
An Event is outputted by a Logger.
FakeLogger is a Logger and BlockingEntryReader that can be used to test log output.
Filter allows filtering of Entry objects when reading or writing.
IDAllocator allocated unique IDs for Entry structs.
Logger is the main logging interface.
Marshaller marshals Entry objects into byte slices.
Timer gets the current time.
Unmarshaller unmarshals a byte slice into an Entry.
An UnstructuredLogger allows logging without the use of typed Events.