log

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2019 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	Include    *include.Include
	Writer     *writer.Writer
	TraceLevel int
}

Log is a log object

func New

func New(path string) (log *Log, err error)

New creates a new log

func (*Log) Code

func (log *Log) Code() (_err error)

Code ... logs a code trace

func (*Log) Critical

func (log *Log) Critical(err error)

Critical ... logs a critical error and stops app

func (*Log) Db

func (log *Log) Db(msg string) (_err error)

Db ... logs Db errors

func (*Log) Error

func (log *Log) Error(err error) (_err error)

Error ... logs an error

func (*Log) HTTP added in v0.1.3

func (log *Log) HTTP(r *http.Request, p map[string]string) (_err error)

HTTP ... logs a warning

func (*Log) Msg

func (log *Log) Msg(msg string) (_err error)

Msg ... logs a message

func (*Log) Warning

func (log *Log) Warning(msg string) (_err error)

Warning ... logs a warning

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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