Documentation ¶
Index ¶
- type ErrorCollector
- type Lagra
- func (l *Lagra) Error(ctx context.Context, message string, customLogPath ...string) error
- func (l *Lagra) Info(ctx context.Context, message string, customLogPath ...string) error
- func (l *Lagra) SetLogFile(filePath string)
- func (l *Lagra) SetLogLevel(level string)
- func (l *Lagra) Warn(ctx context.Context, message string, customLogPath ...string) error
- type LagraConfig
- type LogType
- type StrSelect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorCollector ¶
type ErrorCollector struct {
// contains filtered or unexported fields
}
func Tracker ¶ added in v1.1.7
func Tracker() *ErrorCollector
func (*ErrorCollector) Errors ¶
func (ec *ErrorCollector) Errors() []error
func (*ErrorCollector) Handle ¶
func (ec *ErrorCollector) Handle() bool
func (*ErrorCollector) N ¶
func (ec *ErrorCollector) N(err error)
type Lagra ¶
type Lagra struct {
// contains filtered or unexported fields
}
func (*Lagra) SetLogFile ¶
SetLogFile sets the log file path.
func (*Lagra) SetLogLevel ¶
SetLogLevel sets the log level (INFO, WARN, ERROR).
type LagraConfig ¶
type StrSelect ¶
type StrSelect struct {
// contains filtered or unexported fields
}
func NewStrSelect ¶
func NewStrSelect() *StrSelect
Click to show internal directories.
Click to hide internal directories.