ax(logging): replace prose comment on WithComponent with usage example
Some checks failed
Test / test (push) Waiting to run
Security Scan / security (push) Has been cancelled

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 14:16:29 +01:00
parent fbe40d2c53
commit 5bfffbdec9
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -77,7 +77,9 @@ func New(cfg Config) *Logger {
}
}
// WithComponent returns a new Logger with the specified component name.
// WithComponent returns a child logger scoped to a sub-system.
// child := logger.WithComponent("xmrig")
// child.Info("miner started")
func (l *Logger) WithComponent(component string) *Logger {
return &Logger{
output: l.output,