service

package
v0.0.0-...-6464992 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEBUG = iota
	INFO
	WARNING
	ERROR
	FATAL

	Ldate         = log.Ldate         // the date: 2013/08/23
	Ltime         = log.Ltime         // the time: 01:23:23
	Lmicroseconds = log.Lmicroseconds // microsecond resolution: 01:23:23.123123.  assumes Ltime.
	Llongfile     = log.Llongfile     // full file name and line number: /a/b/c/d.go:23
	Lshortfile    = log.Lshortfile    // final file name element and line number: d.go:23. overrides Llongfile
	LstdFlags     = log.LstdFlags     // initial values for the standard logger
)

Variables

This section is empty.

Functions

func Close

func Close()

func Debug

func Debug(format string, v ...interface{})

func Error

func Error(format string, v ...interface{})

func Fatal

func Fatal(format string, v ...interface{})

func Info

func Info(format string, v ...interface{})

func Warning

func Warning(format string, v ...interface{})

Types

type Logger

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

func NewLogger

func NewLogger(filename string, prefix string, flag int) (newLogger *Logger)

func (*Logger) Close

func (logger *Logger) Close()

func (*Logger) Debug

func (logger *Logger) Debug(format string, v ...interface{})

func (*Logger) Error

func (logger *Logger) Error(format string, v ...interface{})

func (*Logger) Fatal

func (logger *Logger) Fatal(format string, v ...interface{})

func (*Logger) Info

func (logger *Logger) Info(format string, v ...interface{})

func (*Logger) SetLevel

func (logger *Logger) SetLevel(l int)

func (*Logger) StartLogger

func (logger *Logger) StartLogger()

func (*Logger) Warning

func (logger *Logger) Warning(format string, v ...interface{})

Jump to

Keyboard shortcuts

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