Documentation
¶
Index ¶
- type LogCollector
- type LogTree
- func (c *LogTree) Embed(logs *LogTree)
- func (c *LogTree) Fork(message string) *LogTree
- func (c *LogTree) IsVerbose() bool
- func (c *LogTree) Log(message ...any)
- func (c *LogTree) Logf(format string, args ...any)
- func (c *LogTree) SetVerbose(verbose bool)
- func (c *LogTree) String() string
- func (c *LogTree) Verbose() Logger
- func (c *LogTree) Write(msg string)
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogCollector ¶
func NewTestLogger ¶
func NewTestLogger() LogCollector
type LogTree ¶
type LogTree struct {
// contains filtered or unexported fields
}
func NewLogTree ¶
func (*LogTree) SetVerbose ¶
type Logger ¶
type Logger interface { // Log prints a line to the output writer with a header. Log(msg ...any) // Logf prints a formatted line to the output writer with a header. Logf(format string, args ...any) // Write prints the msg string to the output with no additional formatting, followed by a newline Write(msg string) // Verbose returns the logger instance if verbose logging is enabled, and otherwise returns nil. // A nil logger created with `logging.NewLogger` is safe to call methods on. Verbose() Logger // IsVerbose returns true if verbose logging is enabled, and false otherwise. IsVerbose() bool // SetVerbose sets the verbose logging flag. SetVerbose(verbose bool) }
Click to show internal directories.
Click to hide internal directories.