Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogging ¶
InitLogging configures the global logrus logger. Pass a non-nil cs to enable lipgloss-styled error output when errWriter is a terminal.
Types ¶
type ExecLogger ¶
type ExecLogger struct {
// contains filtered or unexported fields
}
ExecLogger is used in Executor. If adds command chain in message like this: [foo=>bar] message.
func NewExecLogger ¶
func NewExecLogger() *ExecLogger
func (*ExecLogger) Child ¶
func (l *ExecLogger) Child(name string) *ExecLogger
func (*ExecLogger) Debug ¶
func (l *ExecLogger) Debug(format string, a ...any)
func (*ExecLogger) Info ¶
func (l *ExecLogger) Info(format string, a ...any)
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter formats a log entry in a human readable way.
type LogRepresenter ¶
type LogRepresenter interface {
Repr() string
}
LogRepresenter is an interface for objects that can format themselves for logging.
type WriterHook ¶
WriterHook struct for routing std depending on lvl.
func (*WriterHook) Fire ¶
func (hook *WriterHook) Fire(entry *log.Entry) error
Fire method prosees entry for Writer.
func (*WriterHook) Levels ¶
func (hook *WriterHook) Levels() []log.Level
Levels geter for list of lvls.
Click to show internal directories.
Click to hide internal directories.