bootstrap
log_panel.bootstrap
¶
bootstrap_log_panel()
¶
validate_database_router()
¶
Ensure the configured log database alias is routed through LogsRouter.
Source code in log_panel/bootstrap.py
build_database_handler()
¶
Return the configured database logging handler.
Source code in log_panel/bootstrap.py
attach_root_handler()
¶
Attach the configured database handler to the root logger when enabled.
Source code in log_panel/bootstrap.py
configure_root_handler()
¶
Attach immediately for commands, or defer server attachment until request handling.
Source code in log_panel/bootstrap.py
attach_root_handler_on_request_started(**kwargs)
¶
Attach the root handler once the serving process handles its first request.
should_defer_root_handler_attachment()
¶
Return whether root logging should wait until the serving process handles requests.
Source code in log_panel/bootstrap.py
is_migration_command()
¶
Return whether the current process is running Django migration orchestration.