Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExecLogger ¶ added in v0.0.50
type ExecLogger struct {
// contains filtered or unexported fields
}
ExecLogger is used in Executor. If adds command chain in message like this: lets: [foo=>bar] message.
func NewExecLogger ¶ added in v0.0.50
func NewExecLogger() *ExecLogger
func (*ExecLogger) Child ¶ added in v0.0.50
func (l *ExecLogger) Child(name string) *ExecLogger
func (*ExecLogger) Debug ¶ added in v0.0.50
func (l *ExecLogger) Debug(format string, a ...interface{})
func (*ExecLogger) Info ¶ added in v0.0.50
func (l *ExecLogger) Info(format string, a ...interface{})
type LogRepresenter ¶
type LogRepresenter interface {
Repr() string
}
LogRepresenter is an interface for objects that can format themselves for logging.
type WriterHook ¶ added in v0.0.30
WriterHook struct for routing std depending on lvl.
func (*WriterHook) Fire ¶ added in v0.0.30
func (hook *WriterHook) Fire(entry *log.Entry) error
Fire method prosees entry for Writer.
func (*WriterHook) Levels ¶ added in v0.0.30
func (hook *WriterHook) Levels() []log.Level
Levels geter for list of lvls.
Click to show internal directories.
Click to hide internal directories.