xlog

package
v0.0.0-...-7ede18c Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

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

Writer object

func NewDailyWriter

func NewDailyWriter(path string) *Writer

NewDailyWriter create a daily writer

func (*Writer) Write

func (w *Writer) Write(b []byte) (n int, err error)

type XLog

type XLog interface {
	Debug(msg string, args ...interface{})
	Warn(msg string, args ...interface{})
	Info(msg string, args ...interface{})
	Error(msg string, args ...interface{})
	Crit(msg string, args ...interface{})
}

XLog is the log interface

func NewDailyLog

func NewDailyLog(path string) XLog

NewDailyLog create a daily log wrapper

Jump to

Keyboard shortcuts

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