log_writer

package
v0.0.0-...-9e8b3cb Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEBUG = iota
	INFO
	NEVERShow
	WARNING
	ERROR
	FATAL
)

Variables

View Source
var (
	LEVEL_FLAGS = [...]string{"DEBUG", "INFO", "INFO", "WARN", "ERROR", "FATAL"}
)

Functions

This section is empty.

Types

type ConsoleWriter

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

func NewConsoleWriter

func NewConsoleWriter() *ConsoleWriter

func (*ConsoleWriter) Init

func (w *ConsoleWriter) Init() error

func (*ConsoleWriter) SetColor

func (w *ConsoleWriter) SetColor(c bool)

func (*ConsoleWriter) Write

func (w *ConsoleWriter) Write(r *log4go.Record) error

type DBWriter

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

func NewDBWriter

func NewDBWriter() *DBWriter

func (*DBWriter) Init

func (db *DBWriter) Init() error

func (*DBWriter) Write

func (db *DBWriter) Write(record *log4go.Record) error

type Log

type Log struct {
	model_monitor.Log
}

func GetLog

func GetLog() *Log

type Writer

type Writer interface {
	Init() error
	Write(*log4go.Record) error
}

Jump to

Keyboard shortcuts

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