slog

package
v0.0.0-...-2c2c8a3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2015 License: BSD-2-Clause Imports: 3 Imported by: 10

Documentation

Index

Constants

View Source
const (
	DEFAULT_STATS_LOG_NAME   = "test"
	DEFAULT_STATS_LOG_LEVEL  = "debug"
	DEFAULT_STATS_LOG_PREFIX = "test"
)

Variables

This section is empty.

Functions

func Debugf

func Debugf(format string, v ...interface{})

func Errorf

func Errorf(format string, v ...interface{})

func Fatalf

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

func Infof

func Infof(format string, v ...interface{})

func InitSimpleLogger

func InitSimpleLogger()

func Logf

func Logf(level Level, format string, v ...interface{})

func Warnf

func Warnf(format string, v ...interface{})

Types

type Level

type Level int
const (
	Panic Level = iota
	Error
	Warn
	Info
	Debug
)

type StdLogger

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

func (*StdLogger) Logf

func (l *StdLogger) Logf(level Level, format string, v ...interface{})

Jump to

Keyboard shortcuts

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