Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger splits sinks by purpose: the embedded *zap.Logger handles regular operator logs (stdout, no OTel export) while auditLogger is otelzap-wrapped so Audit() lines flow to both stdout and the OTel logs SDK. This keeps infrastructure errors and debug noise out of customer-visible OTel sinks.
func NewTestLogger ¶ added in v1.0.4
NewTestLogger wraps a zap logger for use in tests, providing an audit sink that points at the same zap so test output is self-contained.
type LoggerOption ¶
type LoggerOption struct {
LogLevel string
}
type LoggerWithCtx ¶
func (LoggerWithCtx) WithOptions ¶ added in v1.0.4
func (l LoggerWithCtx) WithOptions(opts ...zap.Option) LoggerWithCtx
Click to show internal directories.
Click to hide internal directories.