Documentation
¶
Index ¶
Constants ¶
View Source
const ( ASCreset = "\x1B[0m" ASCgrey = "\x1B[90m" ASCblue = "\x1B[34m" ASCgreen = "\x1B[32m" ASCyellow = "\x1B[93m" ASCred = "\x1B[91m" ASCired = "\x1B[7;91;49m" )
Constants to define commonly used text values
Variables ¶
View Source
var ColorScheme = Scheme{ Reset: ASCreset, Prefix: ASCgrey, Debug: ASCgrey + event.TxtDebug + ASCgrey, Info: ASCblue + event.TxtInfo + ASCgrey, Notice: ASCgreen + event.TxtNotice + ASCgrey, Warning: ASCyellow + event.TxtWarning + ASCgrey, Error: ASCred + event.TxtError + ASCgrey, Critical: ASCired + event.TxtCritical + ASCgrey, Continue: ASCgrey + event.TxtContinue + ASCgrey, TagPrefix: ASCgreen, TagInfix: ASCgrey, TagPostfix: ASCblue, Timestamp: "2006-01-02 15:04:05", }
ColorScheme is default scheme with colors
View Source
var MonoScheme = Scheme{ Debug: event.TxtDebug, Info: event.TxtInfo, Notice: event.TxtNotice, Warning: event.TxtWarning, Error: event.TxtError, Critical: event.TxtCritical, Continue: event.TxtContinue, Timestamp: "2006-01-02 15:04:05", }
MonoScheme is a scheme without colors
Functions ¶
This section is empty.
Types ¶
type Scheme ¶
type Scheme struct { Reset string Prefix string Debug string Info string Notice string Warning string Error string Critical string Continue string TagPrefix string TagInfix string TagPostfix string Timestamp string LongFile bool }
Scheme defines the colors to use in printing a log line
Click to show internal directories.
Click to hide internal directories.