logger

package
v0.0.0-...-f991c82 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2021 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Config *config.Config
}

Logger handle log message

func (*Logger) Colorize

func (l *Logger) Colorize(str, style string) string

Colorize use the Ansi module to colorize output

func (*Logger) Debug

func (l *Logger) Debug(f string, args ...interface{})

Debug output a debug text

func (*Logger) FormatTextProtocol

func (l *Logger) FormatTextProtocol(protocol []byte) []byte

FormatTextProtocol replace NULL by a line break for output formatting

func (*Logger) FormatXMLProtocol

func (l *Logger) FormatXMLProtocol(protocol []byte) []byte

FormatXMLProtocol beautify XML output

func (*Logger) Info

func (l *Logger) Info(f string, args ...interface{})

Info output a green text line

func (*Logger) Warn

func (l *Logger) Warn(f string, args ...interface{})

Warn output a red text line

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL