package
0.0.5
Repository: https://github.com/goplugin/plugin.git
Documentation: pkg.go.dev

# Functions

CreateLogger dwisott.
No description provided by the author
CreateMemoryTestLogger creates a logger that only directs output to the buffer testMemoryLog.
CreateProductionLogger returns a log config for the passed directory with the given LogLevel and customizes stdout for pretty printing.
CreateTestLogger creates a logger that directs output to PrettyConsole configured for test output, and to the buffer testMemoryLog.
Debug logs a debug message.
Debugf formats and then logs the message.
Debugw logs a debug message and any additional given information.
Error logs an error message.
Errorf logs a message at the error level using Sprintf.
No description provided by the author
No description provided by the author
Errorw logs an error message, any additional given information, and includes stack trace.
Fatal logs a fatal message then exits the application.
Fatalf logs a message at the fatal level using Sprintf.
Fatalw logs a message and exits the application.
No description provided by the author
Info logs an info message.
Infof formats and then logs the message.
Infow logs an info message and any additional given information.
No description provided by the author
Logs and returns a new error.
NewORM initializes a new ORM.
NewProductionConfig returns a production logging config.
NewProductionEncoderConfig returns a production encoder config.
Panic logs a panic message then panics.
Panicf formats and then logs the message before panicking.
PanicIf logs the error if present.
SetLogger sets the internal logger to the given input.
Sync flushes any buffered log entries.
Trace is a shim stand-in for when we have real trace-level logging support.
Tracef is a shim stand-in for when we have real trace-level logging support.
Tracew is a shim stand-in for when we have real trace-level logging support.
Warn logs a message at the warn level.
Warnf formats and then logs the message as Warn.
No description provided by the author
Warnw logs a debug message and any additional given information.

# Variables

Default logger for use throughout the project.
Constants for service names for package specific logging configuration.
Constants for service names for package specific logging configuration.

# Structs

LogConfig stores key value pairs for configuring package specific logging.
Logger is the main interface of this package.
MemorySink implements zap.Sink by writing all messages to a buffer.
PrettyConsole wraps a Sink (Writer, Syncer, Closer), usually stdout, and formats the incoming json bytes with colors and white space for readability before passing on to the underlying Writer in Sink.

# Interfaces

No description provided by the author