mirror of
https://github.com/shadoll/moma.git
synced 2026-08-28 11:33:25 +00:00
Add singleton logging configuration for the renamer application
This commit introduces a new module `logging_config.py` that implements a singleton pattern for logging configuration. The logger is initialized only once and can be configured based on an environment variable to log to a file or to the console. This centralizes logging setup and ensures consistent logging behavior throughout the application.
This commit is contained in:
@@ -223,6 +223,14 @@ class MediaPanelProperties:
|
||||
"""Get MediaInfo frame class formatted with label."""
|
||||
return self._extractor.get("frame_class", "MediaInfo")
|
||||
|
||||
@property
|
||||
@conditional_decorators.wrap("Interlaced: ")
|
||||
@text_decorators.colour(name="grey")
|
||||
@conditional_decorators.default("Not extracted")
|
||||
def mediainfo_interlace(self) -> str:
|
||||
"""Get MediaInfo interlace formatted with label."""
|
||||
return self._extractor.get("interlaced", "MediaInfo")
|
||||
|
||||
@property
|
||||
@conditional_decorators.wrap("Resolution: ")
|
||||
@text_decorators.colour(name="grey")
|
||||
|
||||
Reference in New Issue
Block a user