gol

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLogger

type LogLogger struct {
	Logger *log.Logger
}

LogLogger is a logger for the standard library logger

func (*LogLogger) Error

func (r *LogLogger) Error(err error)

Error reports an error

func (*LogLogger) ErrorRequest

func (r *LogLogger) ErrorRequest(err error, req *http.Request)

ErrorRequest reports an error and a http request

func (*LogLogger) Log

func (r *LogLogger) Log(message string, v ...interface{})

Log a message just to the previously provided logger

type Logger

type Logger interface {
	Log(message string, v ...interface{})
	Error(err error)
	ErrorRequest(err error, req *http.Request)
}

Logger interface for gol loggers

type RollbarLogger

type RollbarLogger struct {
	Logger  *log.Logger
	Rollbar *rollbar.Client
}

RollbarLogger is foobar

func (*RollbarLogger) Error

func (r *RollbarLogger) Error(err error)

Error reports an error

func (*RollbarLogger) ErrorRequest

func (r *RollbarLogger) ErrorRequest(err error, req *http.Request)

ErrorRequest reports an error and a http request

func (*RollbarLogger) Log

func (r *RollbarLogger) Log(message string, v ...interface{})

Log a message just to the previously provided logger

Jump to

Keyboard shortcuts

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