log

package
v0.0.0-...-4106b0c Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

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 describes logger structure

func NewLogger

func NewLogger() *Logger

NewLogger creates logger instance

func NewNullLogger

func NewNullLogger() *Logger

NewNullLogger return logger that do not write anywhere

func (*Logger) Error

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

Error prints ERROR level message and exists

func (*Logger) Errorf

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

Errorf prints ERROR level message and exists

func (*Logger) Fatal

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

Fatal prints FATAL level message and exists

func (*Logger) Fatalf

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

Fatalf prints FATAL level message and exists

func (*Logger) Print

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

Print prints INFO level message

func (*Logger) Printf

func (l *Logger) Printf(format string, args ...interface{})

Printf prints INFO level message

func (*Logger) RequestLog

func (l *Logger) RequestLog(r *http.Request)

RequestLog log requests

func (*Logger) ResponseLog

func (l *Logger) ResponseLog(r *http.Request)

ResponseLog log responses

Jump to

Keyboard shortcuts

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