Documentation ¶
Index ¶
- Variables
- func BgBlack(arg interface{}) aurora.Value
- func BgBlue(arg interface{}) aurora.Value
- func BgBrightBlack(arg interface{}) aurora.Value
- func BgBrightBlue(arg interface{}) aurora.Value
- func BgBrightCyan(arg interface{}) aurora.Value
- func BgBrightGreen(arg interface{}) aurora.Value
- func BgBrightMagenta(arg interface{}) aurora.Value
- func BgBrightRed(arg interface{}) aurora.Value
- func BgBrightWhite(arg interface{}) aurora.Value
- func BgBrightYellow(arg interface{}) aurora.Value
- func BgBrown(arg interface{}) aurora.Valuedeprecated
- func BgCyan(arg interface{}) aurora.Value
- func BgGray(n uint8, arg interface{}) aurora.Value
- func BgGreen(arg interface{}) aurora.Value
- func BgIndex(n uint8, arg interface{}) aurora.Value
- func BgMagenta(arg interface{}) aurora.Value
- func BgRed(arg interface{}) aurora.Value
- func BgWhite(arg interface{}) aurora.Value
- func BgYellow(arg interface{}) aurora.Value
- func Black(arg interface{}) aurora.Value
- func Blink(arg interface{}) aurora.Value
- func Blue(arg interface{}) aurora.Value
- func Bold(arg interface{}) aurora.Value
- func BrightBlack(arg interface{}) aurora.Value
- func BrightBlue(arg interface{}) aurora.Value
- func BrightCyan(arg interface{}) aurora.Value
- func BrightGreen(arg interface{}) aurora.Value
- func BrightMagenta(arg interface{}) aurora.Value
- func BrightRed(arg interface{}) aurora.Value
- func BrightWhite(arg interface{}) aurora.Value
- func BrightYellow(arg interface{}) aurora.Value
- func Brown(arg interface{}) aurora.Valuedeprecated
- func Conceal(arg interface{}) aurora.Value
- func ConfigurePersistentLogging(fn string, isMux bool) error
- func CrossedOut(arg interface{}) aurora.Value
- func Cyan(arg interface{}) aurora.Value
- func Debug(v string, params ...interface{})
- func DisableColor()
- func DoublyUnderline(arg interface{}) aurora.Value
- func Encircled(arg interface{}) aurora.Value
- func Error(v string, params ...interface{})
- func Faint(arg interface{}) aurora.Value
- func Fatal(v string, params ...interface{})
- func ForceColor()
- func Fraktur(arg interface{}) aurora.Value
- func Framed(arg interface{}) aurora.Value
- func Gray(n uint8, arg interface{}) aurora.Value
- func Green(arg interface{}) aurora.Value
- func Hidden(arg interface{}) aurora.Value
- func Index(n uint8, arg interface{}) aurora.Value
- func Info(v string, params ...interface{})
- func Init(logLevel Level, format Format, sync bool) error
- func Inverse(arg interface{}) aurora.Value
- func IsDebug() bool
- func Italic(arg interface{}) aurora.Value
- func Magenta(arg interface{}) aurora.Value
- func Overlined(arg interface{}) aurora.Value
- func RapidBlink(arg interface{}) aurora.Value
- func Red(arg interface{}) aurora.Value
- func Reverse(arg interface{}) aurora.Value
- func SetLevel(logLevel Level)
- func ShortHex(bytes []byte) string
- func SlowBlink(arg interface{}) aurora.Value
- func StrikeThrough(arg interface{}) aurora.Value
- func TestingHook(t *testing.T) *test.Hook
- func Trace(v string, params ...interface{})
- func Underline(arg interface{}) aurora.Value
- func Warn(v string, params ...interface{})
- func White(arg interface{}) aurora.Value
- func Yellow(arg interface{}) aurora.Value
- type Format
- type Level
Constants ¶
This section is empty.
Variables ¶
var (
ErrLogFormatInvalid = errors.New("invalid log format name")
)
var (
ErrLogLevelInvalid = errors.New("invalid log level name")
)
Functions ¶
func BgBrightBlue ¶
BgBrightBlue background color (104)
func BgBrightCyan ¶
BgBrightCyan background color (106)
func BgBrightGreen ¶
BgBrightGreen background color (102)
func BgBrightMagenta ¶
BgBrightMagenta background color (105)
func BgBrightRed ¶
BgBrightRed background color (101)
func BgBrightWhite ¶
BgBrightWhite background color (107)
func BgBrightYellow ¶
BgBrightYellow background color (103)
func BgIndex ¶
Other
BgIndex of 8-bit pre-defined background color from 0 to 255 (48;5;n).
0- 7: standard colors (as in ESC [ 40–47 m) 8- 15: high intensity colors (as in ESC [100–107 m) 16-231: 6 × 6 × 6 cube (216 colors): 16 + 36 × r + 6 × g + b (0 ≤ r, g, b ≤ 5) 232-255: grayscale from black to white in 24 steps
func BrightMagenta ¶
BrightMagenta foreground color (95)
func BrightYellow ¶
BrightYellow foreground color (93)
func ConfigurePersistentLogging ¶
ConfigurePersistentLogging adds a log-to-file writer. File content is identical to stdout.
func CrossedOut ¶
CrossedOut, characters legible, but marked for deletion (9).
func DisableColor ¶
func DisableColor()
func DoublyUnderline ¶
DoublyUnderline or Bold off, double-underline per ECMA-48 (21).
func ForceColor ¶
func ForceColor()
func Index ¶
Other
Index of pre-defined 8-bit foreground color from 0 to 255 (38;5;n).
0- 7: standard colors (as in ESC [ 30–37 m) 8- 15: high intensity colors (as in ESC [ 90–97 m) 16-231: 6 × 6 × 6 cube (216 colors): 16 + 36 × r + 6 × g + b (0 ≤ r, g, b ≤ 5) 232-255: grayscale from black to white in 24 steps
func RapidBlink ¶
RapidBlink, blinking 150+ per minute, not widely supported (6).
func StrikeThrough ¶
StrikeThrough is alias for the CrossedOut.
Types ¶
type Level ¶
type Level uint32
const ( // PanicLevel level, highest level of severity. Logs and then calls panic with the // message passed to Debug, Info, ... PanicLevel Level = iota // FatalLevel level. Logs and then calls `logger.Exit(1)`. It will exit even if the // logging level is set to Panic. FatalLevel // ErrorLevel level. Logs. Used for errors that should definitely be noted. // Commonly used for hooks to send errors to an error tracking service. ErrorLevel // WarnLevel level. Non-critical entries that deserve eyes. WarnLevel // InfoLevel level. General operational entries about what's going on inside the // application. InfoLevel // DebugLevel level. Usually only enabled when debugging. Very verbose logging. DebugLevel // TraceLevel level. Designates finer-grained informational events than the Debug. TraceLevel )
func ParseLevel ¶
ParseLevel takes a string level and returns the Logrus log level constant.