Categorygithub.com/smartcontractkit/logger
modulepackage
0.3.0
Repository: https://github.com/smartcontractkit/logger.git
Documentation: pkg.go.dev

# README

Chainlink Logger

This is a small wrapper for the uber.zap logger which provides a default logger instance.

# Functions

CreateProductionLogger returns a log config for the passed directory with the given LogLevel and customizes stdout for pretty printing.
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.
ErrorIf logs the error if present.
ErrorIfCalling calls the given function and logs the error of it if there is.
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.
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.
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.
Warn logs a message at the warn level.
Warnf formats and then logs the message as Warn.
WarnIf logs the error if present.
Warnw logs a debug message and any additional given information.

# Structs

Logger holds a field for the logger interface.
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.