go-minimal-log: github.com/typester/go-minimal-log Index | Files

package log

import "github.com/typester/go-minimal-log"

Index

Package Files

log.go

Constants

const (
    MUTE = iota
    DEBUG
    INFO
    WARN
    CRITICAL
    ERROR = 99
)

Variables

var Colors = map[int]color{
    DEBUG:    {ct.White, false},
    INFO:     {ct.Green, false},
    WARN:     {ct.Yellow, false},
    CRITICAL: {ct.Red, true},
    ERROR:    {ct.Red, false},
}
var LogLevel = DEBUG

configurations

var Logger = l.New(defaultOutput, "", l.LstdFlags|l.Lshortfile)
var Tags = map[int]string{
    DEBUG:    "debug",
    INFO:     "info",
    WARN:     "warn",
    CRITICAL: "critical",
    ERROR:    "error",
}

func Crit Uses

func Crit(args ...interface{})

func Critf Uses

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

func Debug Uses

func Debug(args ...interface{})

func Debugf Uses

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

func Error Uses

func Error(args ...interface{})

func Errorf Uses

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

func Fatal Uses

func Fatal(args ...interface{})

func Fatalf Uses

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

func Info Uses

func Info(args ...interface{})

func Infof Uses

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

func SetFlags Uses

func SetFlags(flags int)

func SetOutput Uses

func SetOutput(out io.Writer)

func SetPrefix Uses

func SetPrefix(prefix string)

func Warn Uses

func Warn(args ...interface{})

func Warnf Uses

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

Package log imports 6 packages (graph). Updated 2016-07-29. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).