# Functions
CreateFileLogger creates a logger to a file
Deprecated: Use NewFileLogger instead.
CreateMultipleWritersWithSource creates a compound writer with source.
CreateStdLogger creates a logger to standard output/error
Deprecated: use NewStdLogger instead.
CreateStringLogger creates a logger to a string builder.
GetLogrLoggerFromContext gets a logger from a context, unless it does not exist then it returns an ErrNoLogger.
No description provided by the author
No description provided by the author
NewCombinedLoggers returns a logger which logs to a list of logger.
No description provided by the author
NewErrorWriterFromLoggers returns a io.Writer from a Loggers by only returning ERROR messages.
NewFileLogger creates a logger to a file.
NewFileOnlyLogger creates a logger to a file such as NewFileLogger but logs are only sent to a file and will not be printed to StdErr or StdOut.
No description provided by the author
NewHclogLogger returns a logger which uses hclog logger (https://github.com/hashicorp/go-hclog).
NewHclogWrapper returns an hclog logger from a Loggers logger.
NewInfoWriterFromLoggers returns a io.Writer from a Loggers by only returning INFO messages.
NewJSONLogger creates a Json logger.
NewJSONLoggerForSlowWriter creates a lock free, non blocking & thread safe logger wrapped around slowWriter
params: slowWriter : writer used to write data streams ringBufferSize : size of ring buffer used to receive messages pollInterval : polling duration to check buffer content loggerSource : logger application name source : source string droppedMessagesLogger : logger for dropped messages If pollInterval is greater than 0, a poller is used otherwise a waiter is used.
No description provided by the author
NewLogrLogger creates loggers based on a logr implementation (https://github.com/go-logr/logr).
NewLogrLoggerFromLoggers converts loggers into a logr.Logger.
NewLogrLoggerWithClose creates loggers based on a logr implementation (https://github.com/go-logr/logr).
NewLogrusLogger returns a logger which uses logrus logger (https://github.com/Sirupsen/logrus).
NewLogrusLoggerWithFileHook returns a logger which uses a logrus logger (https://github.com/Sirupsen/logrus) and writes the logs to `logFilePath`.
NewMultipleLoggers returns a logger which abstracts and internally manages a list of loggers.
No description provided by the author
No description provided by the author
NewPipeLogger will log messages without appending any prefix.
No description provided by the author
NewPlainLogrLoggerFromLoggers converts loggers into a logr.Logger but do not print any data other than the messages.
NewPlainStringLogger creates a logger to a string builder with no extra flag, prefix or tag, just the logged text.
NewQuietLogger returns a quiet logger which only logs errors.
NewSlogLogger returns a logger which uses slog logger (andard library package ).
NewStdLogger creates a logger to standard output/error.
NewStringLogger creates a logger to a string builder.
NewZapLogger returns a logger which uses zap logger (https://github.com/uber-go/zap).
# Constants
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
JSONLoggers defines a JSON logger.
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
# Interfaces
IMultipleLoggers provides an interface to manage multiple loggers the same way as a single logger.
Loggers defines generic loggers which separate common logging messages from errors.
StdLogger is the subset of the Go stdlib log.Logger API.
No description provided by the author