ray/dashboard/modules/log/log_agent.py

18 lines
515 B
Python
Raw Normal View History

import logging
import ray.new_dashboard.modules.log.log_utils as log_utils
import ray.new_dashboard.utils as dashboard_utils
logger = logging.getLogger(__name__)
routes = dashboard_utils.ClassMethodRouteTable
class LogAgent(dashboard_utils.DashboardAgentModule):
def __init__(self, dashboard_agent):
super().__init__(dashboard_agent)
log_utils.register_mimetypes()
routes.static("/logs", self._dashboard_agent.log_dir, show_index=True)
async def run(self, server):
pass