gologger

package module
v0.0.0-...-f1c29c6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2015 License: MIT Imports: 12 Imported by: 1

README

gologger

log for go, use for online game server

Documentation

Index

Constants

View Source
const (
	All = iota
	DEBUG
	INFO
	WARN
	ERROR
	FATAL
)

Variables

This section is empty.

Functions

func CloseLogger

func CloseLogger(logger *Logger)

Types

type Log

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

func New

func New(config_name, config_path string, config_mng *goconfig.Config) *Log

func (*Log) Close

func (self *Log) Close()

func (*Log) GetLogger

func (self *Log) GetLogger(name string) *Logger

type Logger

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

func NewLogger

func NewLogger(name string) *Logger

func (*Logger) Debug

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

func (*Logger) Error

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

func (*Logger) Fatal

func (self *Logger) Fatal(v ...interface{})

func (*Logger) Fatalf

func (self *Logger) Fatalf(format string, v ...interface{})

func (*Logger) Fatalln

func (self *Logger) Fatalln(v ...interface{})

func (*Logger) Flags

func (self *Logger) Flags() int

func (*Logger) Info

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

func (*Logger) Output

func (self *Logger) Output(calldepth int, s string) error

func (*Logger) Panic

func (self *Logger) Panic(v ...interface{})

func (*Logger) Panicf

func (self *Logger) Panicf(format string, v ...interface{})

func (*Logger) Panicln

func (self *Logger) Panicln(v ...interface{})

func (*Logger) Prefix

func (self *Logger) Prefix() string

func (*Logger) Print

func (self *Logger) Print(v ...interface{})

func (*Logger) Printf

func (self *Logger) Printf(format string, v ...interface{})

func (*Logger) Println

func (self *Logger) Println(v ...interface{})

func (*Logger) SetFlags

func (self *Logger) SetFlags(flag int)

func (*Logger) SetPrefix

func (self *Logger) SetPrefix(prefix string)

func (*Logger) Warn

func (self *Logger) Warn(format string, v ...interface{})

Jump to

Keyboard shortcuts

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