Documentation ¶
Index ¶
- Constants
- func DisableColor(flag bool)
- type PrettyLogger
- func (pl *PrettyLogger) Debug(msg string, details ...helpers.IDetails)
- func (pl *PrettyLogger) Error(msg string, details ...helpers.IDetails)
- func (pl *PrettyLogger) Fatal(msg string, details ...helpers.IDetails)
- func (pl *PrettyLogger) GetLevel() string
- func (pl *PrettyLogger) GetWriter() *os.File
- func (pl *PrettyLogger) Info(msg string, details ...helpers.IDetails)
- func (pl *PrettyLogger) LoggerName() string
- func (pl *PrettyLogger) SetLevel(level string) error
- func (pl *PrettyLogger) SetWriter(w *os.File)
- func (pl *PrettyLogger) Success(msg string, details ...helpers.IDetails)
- func (pl *PrettyLogger) Warning(msg string, details ...helpers.IDetails)
Constants ¶
View Source
const LoggerName string = "pretty"
Variables ¶
This section is empty.
Functions ¶
func DisableColor ¶
func DisableColor(flag bool)
Types ¶
type PrettyLogger ¶
type PrettyLogger struct {
// contains filtered or unexported fields
}
func NewPrettyLogger ¶
func NewPrettyLogger() *PrettyLogger
func (*PrettyLogger) GetLevel ¶
func (pl *PrettyLogger) GetLevel() string
func (*PrettyLogger) GetWriter ¶
func (pl *PrettyLogger) GetWriter() *os.File
func (*PrettyLogger) LoggerName ¶
func (pl *PrettyLogger) LoggerName() string
func (*PrettyLogger) SetLevel ¶
func (pl *PrettyLogger) SetLevel(level string) error
func (*PrettyLogger) SetWriter ¶
func (pl *PrettyLogger) SetWriter(w *os.File)
Click to show internal directories.
Click to hide internal directories.