Coverage for /usr/local/lib/python3.12/site-packages/prefect/settings/models/server/logs.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.10.6, created at 2025-12-05 10:48 +0000

1from __future__ import annotations 1a

2 

3from typing import ClassVar 1a

4 

5from pydantic import Field 1a

6from pydantic_settings import SettingsConfigDict 1a

7 

8from prefect.settings.base import PrefectBaseSettings, build_settings_config 1a

9 

10 

11class ServerLogsSettings(PrefectBaseSettings): 1a

12 """ 

13 Settings for controlling behavior of the logs subsystem 

14 """ 

15 

16 model_config: ClassVar[SettingsConfigDict] = build_settings_config( 1a

17 ("server", "logs") 

18 ) 

19 

20 stream_out_enabled: bool = Field( 1a

21 default=False, 

22 description="Whether or not to stream logs out to the API via websockets.", 

23 ) 

24 

25 stream_publishing_enabled: bool = Field( 1a

26 default=False, 

27 description="Whether or not to publish logs to the streaming system.", 

28 )