Documentation ¶
Index ¶
- type Logger
- func (l *Logger) Ctx(c context.Context) context.Context
- func (l *Logger) Print(output string) error
- func (l *Logger) Printf(format string, args ...any) error
- func (l *Logger) VerbosePrint(output string) error
- func (l *Logger) VerbosePrintf(format string, args ...any) error
- func (l *Logger) WithPrefix(pfx string) *Logger
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a type which may be used to write logs to a console.
func (*Logger) VerbosePrint ¶
VerbosePrint prints a line of output _only if_ l was created with the Verbose option.
func (*Logger) VerbosePrintf ¶
VerbosePrintf is like VerbosePrint but for Printf.
func (*Logger) WithPrefix ¶
WithPrefix returns a new Logger with pfx added. Any existing prefix in l will be prepended.
Click to show internal directories.
Click to hide internal directories.