std

package
v0.50.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package std is the implementation of the logger interface with the standard log package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger implementation of the std log.

func New

func New(out io.Writer, lvl patronLog.Level, fields map[string]interface{}) *Logger

New constructor.

func (*Logger) Debug

func (l *Logger) Debug(args ...interface{})

Debug logging.

func (*Logger) Debugf

func (l *Logger) Debugf(msg string, args ...interface{})

Debugf logging.

func (*Logger) Error

func (l *Logger) Error(args ...interface{})

Error logging.

func (*Logger) Errorf

func (l *Logger) Errorf(msg string, args ...interface{})

Errorf logging.

func (*Logger) Fatal

func (l *Logger) Fatal(args ...interface{})

Fatal logging.

func (*Logger) Fatalf

func (l *Logger) Fatalf(msg string, args ...interface{})

Fatalf logging.

func (*Logger) Info

func (l *Logger) Info(args ...interface{})

Info logging.

func (*Logger) Infof

func (l *Logger) Infof(msg string, args ...interface{})

Infof logging.

func (*Logger) Level

func (l *Logger) Level() patronLog.Level

Level of the logging.

func (*Logger) Panic

func (l *Logger) Panic(args ...interface{})

Panic logging.

func (*Logger) Panicf

func (l *Logger) Panicf(msg string, args ...interface{})

Panicf logging.

func (*Logger) Sub

func (l *Logger) Sub(fields map[string]interface{}) patronLog.Logger

Sub returns a sub logger with additional fields.

func (*Logger) Warn

func (l *Logger) Warn(args ...interface{})

Warn logging.

func (*Logger) Warnf

func (l *Logger) Warnf(msg string, args ...interface{})

Warnf logging.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL