Documentation
¶
Overview ¶
package gxlog is based on log4go. color.go provides colorful terminal log output functions.
package gxlog is based on log4go.
package gxlog is based on log4go. pretty.go provides pretty format string
Index ¶
- Variables
- func CDebug(format string, args ...interface{})
- func CEPrintf(color []byte, format string, args ...interface{})
- func CEPrintfln(color []byte, format string, args ...interface{})
- func CError(format string, args ...interface{})
- func CFatal(format string, args ...interface{})
- func CInfo(format string, args ...interface{})
- func CPrintf(color []byte, format string, args ...interface{})
- func CPrintfln(color []byte, format string, args ...interface{})
- func CWarn(format string, args ...interface{})
- func ColorPrint(i interface{})
- func ColorPrintf(fmt string, args ...interface{})
- func ColorPrintln(i interface{})
- func PrettyString(i interface{}) string
- type Conf
- type Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Normal colors // NORMAL = []byte{'\033', '0', 'm'} NORMAL = []byte{'\033', '0'} NBlack = []byte{'\033', '[', '3', '0', 'm'} NRed = []byte{'\033', '[', '3', '1', 'm'} NGreen = []byte{'\033', '[', '3', '2', 'm'} NYellow = []byte{'\033', '[', '3', '3', 'm'} NBlue = []byte{'\033', '[', '3', '4', 'm'} NMagenta = []byte{'\033', '[', '3', '5', 'm'} NCyan = []byte{'\033', '[', '3', '6', 'm'} NWhite = []byte{'\033', '[', '3', '7', 'm'} // Bright colors BBlack = []byte{'\033', '[', '3', '0', ';', '1', 'm'} BRed = []byte{'\033', '[', '3', '1', ';', '1', 'm'} BGreen = []byte{'\033', '[', '3', '2', ';', '1', 'm'} BYellow = []byte{'\033', '[', '3', '3', ';', '1', 'm'} BBlue = []byte{'\033', '[', '3', '4', ';', '1', 'm'} BMagenta = []byte{'\033', '[', '3', '5', ';', '1', 'm'} BCyan = []byte{'\033', '[', '3', '6', ';', '1', 'm'} BWhite = []byte{'\033', '[', '3', '7', ';', '1', 'm'} UnderlineTwinkleHighLight = []byte{'\033', '[', '1', ';', '6', ';', '4', '0', 'm'} )
Functions ¶
func CEPrintfln ¶
func ColorPrint ¶
func ColorPrint(i interface{})
func ColorPrintf ¶
func ColorPrintf(fmt string, args ...interface{})
func ColorPrintln ¶
func ColorPrintln(i interface{})
func PrettyString ¶
func PrettyString(i interface{}) string
Types ¶
Directories
¶
Path | Synopsis |
---|---|
2017-04-02 02:04 package gxelasticsearch provides a Elasticsearch driver
|
2017-04-02 02:04 package gxelasticsearch provides a Elasticsearch driver |
Package gxkafka encapsulates some kafka functions based on github.com/Shopify/sarama.
|
Package gxkafka encapsulates some kafka functions based on github.com/Shopify/sarama. |
Click to show internal directories.
Click to hide internal directories.