log

package
Version: v0.0.0-...-91328e5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2013 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Timestamp  int64  `json:"timestamp"`
	Id         string `json:"id"`
	Method     string `json:"method"`
	Uri        string `json:"uri"`
	Host       string `json:"host"`
	RemoteAddr string `json:"remoteAddress"`
	UserAgent  string `json:"userAgent"`
	Message    string `json:"message"`
	Error      string `json:"error"`
}

type Logger

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

func New

func New(fname string) (*Logger, error)

func (*Logger) Close

func (self *Logger) Close()

func (*Logger) JSON

func (self *Logger) JSON(v interface{})

func (*Logger) RequestStart

func (self *Logger) RequestStart(req *http.Request) *RequestLogger

type RequestLogger

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

func (*RequestLogger) Error

func (self *RequestLogger) Error(err error)

func (*RequestLogger) Message

func (self *RequestLogger) Message(msg string)

func (*RequestLogger) RequestEnd

func (self *RequestLogger) RequestEnd()

func (*RequestLogger) Success

func (self *RequestLogger) Success()

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL