Documentation ¶
Index ¶
- type AdapterSlogger
- func (l *AdapterSlogger) Debug(msg string, a ...interface{})
- func (l *AdapterSlogger) Error(msg string, a ...interface{})
- func (l *AdapterSlogger) GetLevel() opalog.Level
- func (l *AdapterSlogger) Info(msg string, a ...interface{})
- func (l *AdapterSlogger) SetLevel(opalog.Level)
- func (l *AdapterSlogger) Warn(msg string, a ...interface{})
- func (l *AdapterSlogger) WithFields(fields map[string]interface{}) opalog.Logger
- type Config
- type Engine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterSlogger ¶
type AdapterSlogger struct {
// contains filtered or unexported fields
}
AdapterSlogger is the adapter to slog using OPA logger interface.
func (*AdapterSlogger) Debug ¶
func (l *AdapterSlogger) Debug(msg string, a ...interface{})
Debug logs at debug level.
func (*AdapterSlogger) Error ¶
func (l *AdapterSlogger) Error(msg string, a ...interface{})
Error logs at error level.
func (*AdapterSlogger) GetLevel ¶
func (l *AdapterSlogger) GetLevel() opalog.Level
GetLevel noop, uses slog so no current log level.
func (*AdapterSlogger) Info ¶
func (l *AdapterSlogger) Info(msg string, a ...interface{})
Info logs at info level.
func (*AdapterSlogger) SetLevel ¶
func (l *AdapterSlogger) SetLevel(opalog.Level)
SetLevel noop, uses slog.
func (*AdapterSlogger) Warn ¶
func (l *AdapterSlogger) Warn(msg string, a ...interface{})
Warn logs at warn level.
func (*AdapterSlogger) WithFields ¶
func (l *AdapterSlogger) WithFields(fields map[string]interface{}) opalog.Logger
WithFields provides additional fields to include in log output.
Click to show internal directories.
Click to hide internal directories.