akkudoktoreos.server.eos.run_eos
- akkudoktoreos.server.eos.run_eos(host: str, port: int, log_level: str, access_log: bool, reload: bool) None
Run the EOS server with the specified configurations.
This function starts the EOS server using the Uvicorn ASGI server. It accepts arguments for the host, port, log level, access log, and reload options. The log level is converted to lowercase to ensure compatibility with Uvicorn’s expected log level format. If an error occurs while attempting to bind the server to the specified host and port, an error message is logged and the application exits.
Parameters: host (str): The hostname to bind the server to. port (int): The port number to bind the server to. log_level (str): The log level for the server. Options include “critical”, “error”,
“warning”, “info”, “debug”, and “trace”.
access_log (bool): Whether to enable or disable the access log. Set to True to enable. reload (bool): Whether to enable or disable auto-reload. Set to True for development.
Returns: None