-
-
Notifications
You must be signed in to change notification settings - Fork 273
Closed as not planned
Description
Is this the correct configuration for show_locals=False with json output?
structlog.configure(
cache_logger_on_first_use=True,
wrapper_class=structlog.make_filtering_bound_logger(logging.INFO),
processors=[
structlog.contextvars.merge_contextvars,
structlog.processors.add_log_level,
structlog.processors.format_exc_info,
structlog.processors.TimeStamper(fmt="iso", utc=True),
structlog.processors.ExceptionRenderer(
structlog.tracebacks.ExceptionDictTransformer(show_locals=False)
),
structlog.processors.JSONRenderer(serializer=orjson.dumps),
],
logger_factory=structlog.BytesLoggerFactory(),
)
logger = structlog.get_logger()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels