package
1.2.0
Repository: https://github.com/open-policy-agent/opa.git
Documentation: pkg.go.dev

# Packages

Deprecated: This package is intended for older projects transitioning from OPA v0.x and will remain for the lifetime of OPA v1.x, but its use is not recommended.

# Functions

FromContext returns the RequestContext associated with ctx, if any.
Get returns the standard logger used throughout OPA.
New returns a new standard logger.
NewContext returns a copy of parent with an associated RequestContext.
NewNoOpLogger instantiates new NoOpLogger.

# Constants

Debug debug log level.
Error error log level.
Info info log level.
Warn warn log level.

# Type aliases

Level log level for Logger.
Logger provides interface for OPA logger implementations.
NoOpLogger logging implementation that does nothing.
RequestContext represents the request context used to store data related to the request that could be used on logs.
StandardLogger is the default OPA logger implementation.