Documentation ¶
Overview ¶
Package logrusl is an adapter to use the github.com/mandelsoft/logging library on top of github.com/sirupsen/logrus.
Examples:
logrusl.Adapter().New() logrusl.WithWriter(....).New() logrusl.Human().New() logrusl.JSOM().NewLogr() logrusl.Adapter().WithFormatter(...).NewLogrus()
Index ¶
- func New() logging.Context
- type Settings
- func (s Settings) Human(padded ...bool) Settings
- func (s Settings) JSON() Settings
- func (s Settings) New() logging.Context
- func (s Settings) NewLogr() logr.Logger
- func (s Settings) NewLogrus() *logrus.Logger
- func (s Settings) WithFormatter(f logrus.Formatter) Settings
- func (s Settings) WithWriter(w io.Writer) Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Settings ¶
Settings is a composition environment to configure a logrus.Logger or a logging.Context.
func WithFormatter ¶
func WithWriter ¶
Click to show internal directories.
Click to hide internal directories.