mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
f36e7430ae
* Fix log level setting * fix app.py mypy issues
23 lines
506 B
Python
23 lines
506 B
Python
from enum import Enum
|
|
|
|
from pydantic import Field
|
|
|
|
from .base import FrigateBaseModel
|
|
|
|
__all__ = ["LoggerConfig", "LogLevel"]
|
|
|
|
|
|
class LogLevel(str, Enum):
|
|
debug = "debug"
|
|
info = "info"
|
|
warning = "warning"
|
|
error = "error"
|
|
critical = "critical"
|
|
|
|
|
|
class LoggerConfig(FrigateBaseModel):
|
|
default: LogLevel = Field(default=LogLevel.info, title="Default logging level.")
|
|
logs: dict[str, LogLevel] = Field(
|
|
default_factory=dict, title="Log level for specified processes."
|
|
)
|