diff --git a/MANIFEST.in b/MANIFEST.in index de64feb9..eb884780 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,3 @@ -include cylc/uiserver/logging_config.json include cylc/uiserver/logo.svg include cylc/uiserver/py.typed recursive-include cylc/uiserver/ui/ * diff --git a/cylc/uiserver/app.py b/cylc/uiserver/app.py index e06e4d00..01fe74bf 100644 --- a/cylc/uiserver/app.py +++ b/cylc/uiserver/app.py @@ -293,22 +293,6 @@ class CylcUIServer(ExtensionApp): Takes effect on (re)start. ''' ) - logging_config = PathType( - config=True, - help=''' - Set the path to a logging config JSON file. - - This configures what gets logged where. - - For more information on logging configuration see: - https://docs.python.org/3/library/logging.config.html - - Currently only JSON format is supported. - - If unspecified the default config located in - ``cylc/uiserver/logging_config.json`` will apply. - ''' - ) scan_interval = Float( config=True, help=''' @@ -378,10 +362,6 @@ def _get_ui_path(self): raise Exception(f'Could not find UI build in {ui_path}') - @default('logging_config') - def _default_logging_config(self): - return Path(Path(uis_pkg).parent / 'logging_config.json') - def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.workflows_mgr = WorkflowsManager(self, log=self.log) diff --git a/cylc/uiserver/logging_config.json b/cylc/uiserver/logging_config.json deleted file mode 100644 index 32762add..00000000 --- a/cylc/uiserver/logging_config.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "logging": { - "version": 1, - "disable_existing_loggers": true, - "formatters": { - "basic": { - "format": "%(asctime)s %(name)-12s %(levelname)-8s %(message)s" - } - }, - "handlers": { - "console": { - "level": "DEBUG", - "class": "logging.StreamHandler", - "formatter": "basic", - "stream" : "ext://sys.stdout" - } - }, - "loggers": { - "tornado.access": { - "level": "WARN", - "handlers": ["console"], - "propagate": false - }, - "tornado.application": { - "level": "WARN", - "handlers": ["console"], - "propagate": false - }, - "cylc": { - "level": "INFO", - "handlers": ["console"], - "propagate": false - }, - "cylc.uiserver": { - "level": "DEBUG", - "handlers": ["console"], - "propagate": false - } - }, - "root": { - "handlers": ["console"], - "level": "WARN" - } - } -}