Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
foundationlog.PkgLogger
}
Logger wraps other logger to provide additional functionalities.
func NewPkgLogger ¶
func NewPkgLogger() Logger
NewPkgLogger creates a logger for use within a package. This logger automatically adds the name of the package where this function was called, not when logging.
func (Logger) WithContext ¶
func (logger Logger) WithContext( ctx api.CallContext, ) *foundationlog.Logger
WithContext creates a new logger which bound to a CallContext.
TODO: don't populate the entry before the actual logging call.
Click to show internal directories.
Click to hide internal directories.