blog

package
v0.0.0-...-be0592b Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Info        = glog.Infof
	Infof       = glog.Infof
	InfofDepthf = glog.InfoDepthf

	Warn  = glog.Warningf
	Warnf = glog.Warningf

	Error  = glog.Errorf
	Errorf = glog.Errorf

	Fatal  = glog.Fatal
	Fatalf = glog.Fatalf

	V = glog.V
)

Functions

func CloseLogs

func CloseLogs()

func Debug

func Debug(args ...interface{})

func ErrorJSON

func ErrorJSON(format string, args ...interface{})

func InfoJSON

func InfoJSON(format string, args ...interface{})

func InitLogs

func InitLogs()

InitLogs initializes logs the way we want for blog.

Types

type GlogWriter

type GlogWriter struct{}

GlogWriter serves as a bridge between the standard log package and the glog package.

func (GlogWriter) Output

func (writer GlogWriter) Output(calldepth int, s string) error

Output for mgo logger

func (GlogWriter) Print

func (writer GlogWriter) Print(v ...interface{})

func (GlogWriter) Printf

func (writer GlogWriter) Printf(format string, v ...interface{})

func (GlogWriter) Write

func (writer GlogWriter) Write(data []byte) (n int, err error)

Write implements the io.Writer interface.

Jump to

Keyboard shortcuts

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