docs(process): add docstrings to Logger interface methods
Add missing documentation to Logger interface methods and NopLogger implementation to satisfy 80% docstring coverage threshold. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
4f1c6926b2
commit
d9ec796857
1 changed files with 5 additions and 0 deletions
|
|
@ -3,14 +3,19 @@ package exec
|
|||
// Logger interface for command execution logging.
|
||||
// Compatible with pkg/log.Logger and other structured loggers.
|
||||
type Logger interface {
|
||||
// Debug logs a debug-level message with optional key-value pairs.
|
||||
Debug(msg string, keyvals ...any)
|
||||
// Error logs an error-level message with optional key-value pairs.
|
||||
Error(msg string, keyvals ...any)
|
||||
}
|
||||
|
||||
// NopLogger is a no-op logger that discards all messages.
|
||||
type NopLogger struct{}
|
||||
|
||||
// Debug discards the message (no-op implementation).
|
||||
func (NopLogger) Debug(string, ...any) {}
|
||||
|
||||
// Error discards the message (no-op implementation).
|
||||
func (NopLogger) Error(string, ...any) {}
|
||||
|
||||
var defaultLogger Logger = NopLogger{}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue