Documentation ¶
Overview ¶
consola is a simple package for printing better looking Logrus log messages to the console.
Example ¶
log := logrus.New() // Set the logrus formatter to a new consola.Formatter log.Formatter = Formatter{} log.Info("Hello, World!")
Output:
Index ¶
Examples ¶
Constants ¶
View Source
const ( Red = "\x1b[31m" Yellow = "\x1b[33m" Green = "\x1b[32m" Rst = "\x1b[0m" DarkGrey = "\x1b[90m" )
Terminal color constants
Variables ¶
View Source
var DefaultFieldSeparator = ":"
View Source
var DefaultTimeLayout = "15:04:05 02/01"
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
Click to show internal directories.
Click to hide internal directories.