nvflare.app_common.logging.constants module

class Channels[source]

Bases: object

ERROR_LOG_LOG_TYPE = 'ERRORLOG'
LOG_STREAMING_CHANNEL = 'log_streaming'
is_log_streaming_allowed(fl_ctx: FLContext | None = None) bool[source]

Check whether the site permits live log streaming.

Default-allow: returns True unless resources.json explicitly sets allow_log_streaming to False. Tries ConfigService first (fast path, populated in production via FLClientStarterConfiger); falls back to reading resources.json directly via the workspace from fl_ctx, which is required in the simulator path where the section is not registered.