package
0.0.0-k8s120-rc1
Repository: https://github.com/libopenstorage/openstorage.git
Documentation: pkg.go.dev

# README

Deprecated: This library has not been maintained for a long time and there are better options available at this time. Please consider using a different logging library. If you must continue to use lion, fork it for your own use and maintenance.

# Packages

Package currentlion implements basic integration with Current using plaintext syslog.
Package envlion provides simple utilities to setup lion from the environment.
Package grpclion provides a logger for grpclog.
Package sysloglion defines functionality for integration with syslog.

# Functions

AddGlobalHook adds a GlobalHook that will be called any time SetLogger or SetLevel is called.
AtLevel calls AtLevel on the global Logger.
Debugf calls Debugf on the global Logger.
Debugln calls Debugln on the global Logger.
DebugWriter calls DebugWriter on the global Logger.
EncodedPusherToPusher returns a Pusher for the EncodedPusher.
Errorf calls Errorf on the global Logger.
Errorln calls Errorln on the global Logger.
ErrorWriter calls ErrorWriter on the global Logger.
Fatalf calls Fatalf on the global Logger.
Fatalln calls Fatalln on the global Logger.
Flush calls Flush on the global Logger.
GlobalJSONMarshalFunc returns the global JSONMarshalFunc instance.
GlobalLogger returns the global Logger instance.
Infof calls Infof on the global Logger.
Infoln calls Infoln on the global Logger.
InfoWriter calls InfoWriter on the global Logger.
JSONMarshallerDisableNewlines disables newlines after each marshalled Entry.
LogDebug calls LogDebug on the global Logger.
LoggerEnableID enables IDs for the Logger.
LoggerWithErrorHandler uses the ErrorHandler for the Logger.
LoggerWithIDAllocator uses the IDAllocator for the Logger.
LoggerWithTimer uses the Timer for the Logger.
LogInfo calls LogInfo on the global Logger.
NameToLevel returns the Level for the given name.
NewJSONMarshaller constructs a new Marshaller for JSON.
NewJSONWritePusher constructs a new Pusher using a JSON Marshaller.
NewLogger constructs a new Logger using the given Pusher.
NewMultiPusher constructs a new Pusher that calls all the given Pushers.
NewReadPuller constructs a new Puller that reads from the given Reader.
NewTextMarshaller constructs a new Marshaller that produces human-readable marshalled Entry objects.
NewTextWritePusher constructs a new Pusher using a TextMarshaller.
NewWritePusher constructs a new Pusher that writes to the given io.Writer.
Panicf calls Panicf on the global Logger.
Panicln calls Panicln on the global Logger.
Printf calls Printf on the global Logger.
Println calls Println on the global Logger.
RedirectStdLogger will redirect logs to golang's standard logger to the global Logger instance.
RegisterEncoderDecoder registers an EncoderDecoder by encoding.
SetJSONMarshalFunc sets the global JSONMarshalFunc to be used by default.
SetLevel sets the global Logger to to be at the given Level.
SetLogger sets the global Logger instance.
TextMarshallerDisableContexts will suppress the printing of Entry contexts.
TextMarshallerDisableLevel will suppress the printing of Entry Levels.
TextMarshallerDisableNewlines disables newlines after each marshalled Entry.
TextMarshallerDisableTime will suppress the printing of Entry Timestamps.
Warnf calls Warnf on the global Logger.
Warnln calls Warnln on the global Logger.
WarnWriter calls WarnWriter on the global Logger.
WithField calls WithField on the global Logger.
WithFields calls WithFields on the global Logger.
WithKeyValues calls WithKeyValues on the global Logger.
Writer calls Writer on the global Logger.

# Constants

LevelDebug is the debug Level.
LevelError is the error Level.
LevelFatal is the fatal Level.
LevelInfo is the info Level.
LevelNone represents no Level.
LevelPanic is the panic Level.
LevelWarn is the warn Level.

# Variables

DefaultErrorHandler is the default ErrorHandler.
DefaultIDAllocator is the default IDAllocator.
DefaultJSONMarshalFunc is the default JSONMarshalFunc.
DefaultJSONMarshaller is the default JSON Marshaller.
DefaultLevel is the default Level.
DefaultLogger is the default Logger.
DefaultPusher is the default Pusher.
DefaultTimer is the default Timer.
DiscardLogger is a Logger that discards all logs.
DiscardPusher is a Pusher that discards all logs.

# Structs

EncodedEntry is an encoded log entry.
EncodedEntryMessage is an encoded EntryMessage.
Entry
Entry is a log entry.
EntryMessage is a context or event in an Entry.

# Interfaces

BaseLevelLogger is a LevelLogger without the methods that are self-returning.
BaseLogger is a Logger without the methods that are self-returning.
Decoder decodes EntryMessages.
EncodedPusher pushes EncodedEntry objects.
Encoder encodes EntryMessages.
EncoderDecoder is an Encoder and Decoarder.
ErrorHandler handles errors when logging.
Flusher is an object that can be flushed to a persistent store.
IDAllocator allocates unique IDs for Entry objects.
LevelLogger is a logger tied to a specific Level.
Logger is the main logging interface.
Marshaller marshals Entry objects to be written.
Puller pulls EncodedEntry objects from a persistent store.
Pusher is the interface used to push Entry objects to a persistent store.
TextMarshaller is a Marshaller used for text.
Timer returns the current time.
Unmarshaller unmarshalls a marshalled EncodedEntry object.

# Type aliases

GlobalHook is a function that handles a change in the global Logger instance.
JSONMarshalFunc marshals JSON for a TextMarshaller.
JSONMarshallerOption is an option for creating Marshallers.
Level is a logging level.
LoggerOption is an option for the Logger constructor.
TextMarshallerOption is an option for creating Marshallers.