Documentation ¶
Index ¶
- Constants
- func Build() tBuild
- type TFormatParams
- type TLogger
- func (o *TLogger) CanHandle(moduleName string) bool
- func (o *TLogger) CannotHandle(moduleName string) bool
- func (o *TLogger) Format() string
- func (o *TLogger) Formatter(params TFormatParams) string
- func (o *TLogger) LevelFilter() loglevel.TFilter
- func (o *TLogger) ModuleFilter() []string
- func (o *TLogger) Styler() TStyler
- func (o *TLogger) Writer() io.Writer
- type TStyler
Constants ¶
View Source
const DefaultFormat = "(~m) ~l~s~x~e\n"
DefaultFormat - ~d - date when a message occurred ~t - time when a message occurred ~l - loglevel ~m - module name ~s - log state ~e - error message ~x - text message example: "~d ~t (~m) ~l: ~x~e\n"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TFormatParams ¶
type TFormatParams struct { Format string Time time.Time LogLevel loglevel.TLevel Text string Error error HasError bool State loglevel.TFilter ModuleName string }
TFormatParams -
type TLogger ¶
type TLogger struct {
// contains filtered or unexported fields
}
TLogger -
func (*TLogger) CannotHandle ¶
CannotHandle -
Click to show internal directories.
Click to hide internal directories.