package
0.0.0-20241016023834-828d3b419b6e
Repository: https://github.com/blockpilabs/aaexplorer.git
Documentation: pkg.go.dev
# Functions
AllowAll is an alias for AllowDebug.
AllowDebug allows error, info and debug level log events to pass.
AllowDebugWith allows error, info and debug level log events to pass for a specific key value pair.
AllowError allows only error level log events to pass.
AllowErrorWith allows only error level log events to pass for a specific key value pair.
AllowInfo allows error and info level log events to pass.
AllowInfoWith allows error and info level log events to pass for a specific key value pair.
AllowLevel returns an option for the given level or error if no option exist for such level.
AllowNone allows no leveled log events to pass.
AllowNoneWith allows no leveled log events to pass for a specific key value pair.
AllowInfo allows error and info level log events to pass.
AllowWarnWith allows error and warn level log events to pass for a specific key value pair.
No description provided by the author
No description provided by the author
No description provided by the author
NewFilter wraps next and implements filtering.
NewNopLogger returns a logger that doesn't do anything.
NewSyncWriter returns a new writer that is safe for concurrent use by multiple goroutines.
NewTMFmtLogger returns a logger that encodes keyvals to the Writer in aaexplorer custom format.
NewTMJSONLogger returns a Logger that encodes keyvals to the Writer as a single JSON object.
NewTMJSONLoggerNoTS is the same as NewTMJSONLogger, but without the timestamp.
NewTMLogger returns a logger that encodes msg and keyvals to the Writer using go-kit's log as an underlying logger and our custom formatter.
NewTMLoggerWithColorFn allows you to provide your own color function.
NewTracingLogger enables tracing by wrapping all errors (if they implement stackTracer interface) in tracedError.
No description provided by the author
TestingLogger returns a TMLogger which writes to STDOUT if testing being run with the verbose (-v) flag, NopLogger otherwise.
TestingLoggerWithColorFn allow you to provide your own color function.
TestingLoggerWOutput returns a TMLogger which writes to (w io.Writer) if testing being run with the verbose (-v) flag, NopLogger otherwise.
No description provided by the author
No description provided by the author
# Interfaces
Logger is what any aaexplorer library should take.
# Type aliases
Option sets a parameter for the filter.