logging

package
v0.0.0-...-e3979bd Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2014 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Error   LogLevel = "ERROR"
	Warning          = "WARN"
	Info             = "INFO"
	Debug            = "DEBUG"
)

Variables

This section is empty.

Functions

func LogRequest

func LogRequest(request *http.Request) (s string)

Types

type LogLevel

type LogLevel string

type LogType

type LogType string

type Logger

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

func NewLogger

func NewLogger(c *LoggerConfig) (logger *Logger)

func (*Logger) Debug

func (logger *Logger) Debug(s string)

func (*Logger) Error

func (logger *Logger) Error(s string)

func (*Logger) Info

func (logger *Logger) Info(s string)

func (*Logger) Warning

func (logger *Logger) Warning(s string)

type LoggerConfig

type LoggerConfig struct {
	Level    LogLevel
	FileName string
}

func NewLoggerConfig

func NewLoggerConfig() (c *LoggerConfig)

Jump to

Keyboard shortcuts

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