type Logger struct { *logrus.Entry // contains filtered or unexported fields }
func New(name string, version string, opts ...Option) *Logger
New creates a new logger with all the important fields set.
func NewAudit(name string, version string, opts ...Option) *Logger
func (l *Logger) LeakSensitiveData() bool
func (l *Logger) Logrus() *logrus.Logger
func (l *Logger) NewEntry() *Logger
func (l *Logger) PopLogger(lvl logging.Level, s string, args ...interface{})
func (l *Logger) UseConfig(c configurator)
func (l *Logger) WithContext(ctx context.Context) *Logger
func (l *Logger) WithError(err error) *Logger
func (l *Logger) WithField(key string, value interface{}) *Logger
func (l *Logger) WithFields(f logrus.Fields) *Logger
func (l *Logger) WithRequest(r *http.Request) *Logger
func (l *Logger) WithSensitiveField(key string, value interface{}) *Logger
type Option func(*options)
func ForceFormat(format string) Option
func ForceFormatter(formatter logrus.Formatter) Option
func ForceLevel(level logrus.Level) Option
func LeakSensitive() Option
func ReportCaller(reportCaller bool) Option
func UseLogger(l *logrus.Logger) Option
func WithConfigurator(c configurator) Option
func WithExitFunc(exitFunc func(int)) Option
func WithHook(hook logrus.Hook) Option