Skip to content
Eric Pailleau edited this page Feb 8, 2020 · 2 revisions

Welcome to the slogan wiki!

API

var CallerBase bool = true
var Colorize bool = true
var ExitOnError bool = false
var ForceColorize bool = false
var TraceCaller bool = false
var Verbosity int = Lwarning
var WarningAsError bool = false
func Alert(log string)
func AllDone()
func Critical(log string)
func Debug(log string)
func ElapsedTime()
func Emergency(log string)
func Error(log string)
func GetColors() map[int]string
func GetFormats() map[string]string
func GetParts() map[string]bool
func GetTags() [10]string
func Info(log string)
func IsTerminal() bool
func Log(level int, log string)
func Notice(log string)
func Runtime()
func SetColor(mode bool)
func SetColors(n map[int]string) map[int]string
func SetExitOnError(mode bool)
func SetFlags(flag int)
func SetForceColor(mode bool)
func SetFormats(n map[string]string) map[string]string
func SetOutput(w io.Writer)
func SetParts(n map[string]bool) map[string]bool
func SetPrefix(prefix string) string
func SetTags(n [10]string) [10]string
func SetTraceCaller(mode bool)
func SetVerbosity(level int)
func SetWarningAsError()
func ShowColors()
func ShowFormats()
func ShowParts()
func ShowTags()
func Silent(log string)
func Trace(trace interface{})
func TraceCall(trace interface{})
func TraceCall_(trace interface{})
func Trace_(trace interface{})
func Warning(log string)

Constants

const (
		Lsilent    = 0
		Lemergency = 1
		Lalert     = 2
		Lcritical  = 3
		Lerror     = 4
		Lwarning   = 5
		Lnotice    = 6
		Linfo      = 7
		Ldebug     = 8
		Ltrace     = 9
)

const (
    Ldate         = log.Ldate
    Ltime         = log.Ltime
    Lmicroseconds = log.Lmicroseconds
    Llongfile     = log.Llongfile
    Lshortfile    = log.Lshortfile
    LUTC          = log.LUTC
    LstdFlags     = log.Ldate | log.Ltime 
)
Clone this wiki locally