log4go

package module
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: BSD-2-Clause Imports: 11 Imported by: 0

README

Please see http://log4go.googlecode.com/

Installation:
- Run `goinstall log4go.googlecode.com/hg`

Usage:
- Add the following import:
import l4g "log4go.googlecode.com/hg"

Acknowledgements:
- pomack
  For providing awesome patches to bring log4go up to the latest Go spec

# New feature
* log 到文件可以选择滚动类型,比如:按天,小时等等.
### 1.2
socketlog序列化record为json时使用的json包修改为字符串拼接,测试序列化过程速度加快1倍左右

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfiguredLoggers map[string]Logger
	DefaultLogger     *loggerWrapper
)

Functions

func D

func D(arg0 interface{}, args ...interface{})

func Debug

func Debug(arg0 interface{}, args ...interface{})

func E

func E(arg0 interface{}, args ...interface{})

func Error

func Error(arg0 interface{}, args ...interface{})

func I

func I(arg0 interface{}, args ...interface{})

func Info

func Info(arg0 interface{}, args ...interface{})

func W

func W(arg0 interface{}, args ...interface{})

func Warn

func Warn(arg0 interface{}, args ...interface{})

Types

type Logger

type Logger interface {
	D(arg0 interface{}, args ...interface{})
	I(arg0 interface{}, args ...interface{})
	W(arg0 interface{}, args ...interface{})
	E(arg0 interface{}, args ...interface{})
	Debug(arg0 interface{}, args ...interface{})
	Info(arg0 interface{}, args ...interface{})
	Warn(arg0 interface{}, args ...interface{})
	Error(arg0 interface{}, args ...interface{})
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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