Documentation
¶
Index ¶
- func BlackAntiWhiteText(v interface{}) string
- func BlackBg(v interface{}) string
- func BlackBoldText(v interface{}) string
- func BlackFlashText(v interface{}) string
- func BlackText(v interface{}) string
- func BlackUnderlineText(v interface{}) string
- func BlueAntiWhiteText(v interface{}) string
- func BlueBg(v interface{}) string
- func BlueBoldText(v interface{}) string
- func BlueFlashText(v interface{}) string
- func BlueText(v interface{}) string
- func BlueUnderlineText(v interface{}) string
- func CyanAntiWhiteText(v interface{}) string
- func CyanBg(v interface{}) string
- func CyanBoldText(v interface{}) string
- func CyanFlashText(v interface{}) string
- func CyanText(v interface{}) string
- func CyanUnderlineText(v interface{}) string
- func GreenAntiWhiteText(v interface{}) string
- func GreenBg(v interface{}) string
- func GreenBoldText(v interface{}) string
- func GreenFlashText(v interface{}) string
- func GreenText(v interface{}) string
- func GreenUnderlineText(v interface{}) string
- func HttpLogger(lq *LogQueue, method string, path string, statusCode int, ...)
- func NewLogCon(message ...interface{}) *logCon
- func PurpleAntiWhiteText(v interface{}) string
- func PurpleBg(v interface{}) string
- func PurpleBoldText(v interface{}) string
- func PurpleFlashText(v interface{}) string
- func PurpleText(v interface{}) string
- func PurpleUnderlineText(v interface{}) string
- func RedAntiWhiteText(v interface{}) string
- func RedBg(v interface{}) string
- func RedBoldText(v interface{}) string
- func RedFlashText(v interface{}) string
- func RedText(v interface{}) string
- func RedUnderlineText(v interface{}) string
- func WhiteAntiWhiteText(v interface{}) string
- func WhiteBg(v interface{}) string
- func WhiteBoldText(v interface{}) string
- func WhiteFlashText(v interface{}) string
- func WhiteText(v interface{}) string
- func WhiteUnderlineText(v interface{}) string
- func YellowAntiWhiteText(v interface{}) string
- func YellowBg(v interface{}) string
- func YellowBoldText(v interface{}) string
- func YellowFlashText(v interface{}) string
- func YellowText(v interface{}) string
- func YellowUnderlineText(v interface{}) string
- type LogQueue
- func (lq *LogQueue) AddDestination(dest ...int)
- func (lq *LogQueue) Console(lc *logCon)
- func (lq *LogQueue) DEBUG(message ...interface{}) (*logCon, error)
- func (lq *LogQueue) DestExist(key int) bool
- func (lq *LogQueue) DoLogQueue()
- func (lq *LogQueue) ERROR(message ...interface{})
- func (lq *LogQueue) FATAL(message ...interface{})
- func (lq *LogQueue) GetDestination() []int
- func (lq *LogQueue) INFO(message ...interface{})
- func (lq *LogQueue) PANIC(message ...interface{}) (*logCon, error)
- func (lq *LogQueue) RemoveDestination(key int)
- func (lq *LogQueue) SendMail(mess *FlyWhisper.Message) error
- func (lq *LogQueue) SetDestination(dest ...int)
- func (lq *LogQueue) SetErrLogOut(out io.Writer)
- func (lq *LogQueue) SetLevel(level int)
- func (lq *LogQueue) SetLogFileMaxSize(size int64)
- func (lq *LogQueue) SetLogOut(out io.Writer)
- func (lq *LogQueue) SetLogOutPath(filename string) error
- func (lq *LogQueue) SmtpLogger(username string, password string, host string, port string, from string) *FlyWhisper.SMTPSender
- func (lq *LogQueue) WARNING(message ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlackAntiWhiteText ¶
func BlackAntiWhiteText(v interface{}) string
func BlackBoldText ¶
func BlackBoldText(v interface{}) string
func BlackFlashText ¶
func BlackFlashText(v interface{}) string
func BlackUnderlineText ¶
func BlackUnderlineText(v interface{}) string
func BlueAntiWhiteText ¶
func BlueAntiWhiteText(v interface{}) string
func BlueBoldText ¶
func BlueBoldText(v interface{}) string
func BlueFlashText ¶
func BlueFlashText(v interface{}) string
func BlueUnderlineText ¶
func BlueUnderlineText(v interface{}) string
func CyanAntiWhiteText ¶
func CyanAntiWhiteText(v interface{}) string
func CyanBoldText ¶
func CyanBoldText(v interface{}) string
func CyanFlashText ¶
func CyanFlashText(v interface{}) string
func CyanUnderlineText ¶
func CyanUnderlineText(v interface{}) string
func GreenAntiWhiteText ¶
func GreenAntiWhiteText(v interface{}) string
func GreenBoldText ¶
func GreenBoldText(v interface{}) string
func GreenFlashText ¶
func GreenFlashText(v interface{}) string
func GreenUnderlineText ¶
func GreenUnderlineText(v interface{}) string
func HttpLogger ¶
func PurpleAntiWhiteText ¶
func PurpleAntiWhiteText(v interface{}) string
func PurpleBoldText ¶
func PurpleBoldText(v interface{}) string
func PurpleFlashText ¶
func PurpleFlashText(v interface{}) string
func PurpleText ¶
func PurpleText(v interface{}) string
func PurpleUnderlineText ¶
func PurpleUnderlineText(v interface{}) string
func RedAntiWhiteText ¶
func RedAntiWhiteText(v interface{}) string
func RedBoldText ¶
func RedBoldText(v interface{}) string
func RedFlashText ¶
func RedFlashText(v interface{}) string
func RedUnderlineText ¶
func RedUnderlineText(v interface{}) string
func WhiteAntiWhiteText ¶
func WhiteAntiWhiteText(v interface{}) string
func WhiteBoldText ¶
func WhiteBoldText(v interface{}) string
func WhiteFlashText ¶
func WhiteFlashText(v interface{}) string
func WhiteUnderlineText ¶
func WhiteUnderlineText(v interface{}) string
func YellowAntiWhiteText ¶
func YellowAntiWhiteText(v interface{}) string
func YellowBoldText ¶
func YellowBoldText(v interface{}) string
func YellowFlashText ¶
func YellowFlashText(v interface{}) string
func YellowText ¶
func YellowText(v interface{}) string
func YellowUnderlineText ¶
func YellowUnderlineText(v interface{}) string
Types ¶
type LogQueue ¶
type LogQueue struct {
// contains filtered or unexported fields
}
添加日志队列
func (*LogQueue) DoLogQueue ¶
func (lq *LogQueue) DoLogQueue()
func (*LogQueue) SetErrLogOut ¶
func (*LogQueue) SetLogOutPath ¶
设置输出到日志文件 默认输出到服务的当前目录 如果filename已存在并且为文件夹,则会往里添加文件 如果filename已存在但是是一个文件,则会在同级目录下生成日志文件 新建一个名为filename的文件夹 日志文件创建失败,会将日志转移至os.Stdout
func (*LogQueue) SmtpLogger ¶
func (lq *LogQueue) SmtpLogger(username string, password string, host string, port string, from string) *FlyWhisper.SMTPSender
Click to show internal directories.
Click to hide internal directories.