Documentation ¶
Index ¶
- Variables
- func AssertOk(err error, wrapMsg ...string)
- func AssertTrue(express bool, wrapMsg ...string)
- func Debgf(format string, a ...interface{})
- func Erro(err error, wrapMsg ...string)
- func Errof(format string, a ...interface{})
- func Fata(err error, wrapMsg ...string)
- func Fataf(format string, a ...interface{})
- func Infof(format string, a ...interface{})
- func Init(saveDisk bool)
- func SetClock(c gtime.Clock)
- func Warnf(format string, a ...interface{})
- type Config
- type Logz
- func (lgz *Logz) AssertOk(err error, wrapMsg ...string)
- func (lgz *Logz) AssertTrue(express bool, wrapMsg ...string)
- func (lgz *Logz) Debgf(format string, a ...interface{})
- func (lgz *Logz) Destroy()
- func (lgz *Logz) Erro(err error, wrapMsg ...string)
- func (lgz *Logz) Errof(format string, a ...interface{})
- func (lgz *Logz) Fata(err error, wrapMsg ...string)
- func (lgz *Logz) Fataf(format string, a ...interface{})
- func (lgz *Logz) Flush()
- func (lgz *Logz) Infof(format string, a ...interface{})
- func (lgz *Logz) Init(config *Config) error
- func (lgz *Logz) Logging(log glogger.Log) error
- func (lgz *Logz) LoggingEx(level glogger.Level, text string, tags map[string]string) error
- func (lgz *Logz) SetClock(c gtime.Clock)
- func (lgz *Logz) Warnf(format string, a ...interface{})
- func (lgz *Logz) WriteMsg(when time.Time, msg string, level glogger.Level) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLogger = &Logz{}
Functions ¶
func AssertTrue ¶
Types ¶
type Config ¶
type Config struct { SaveDisk bool SaveDir string FileNameFormat string PrintScreen bool MachId string AppName string }
func DefaultConfig ¶
Click to show internal directories.
Click to hide internal directories.