Log, add get console formatter method

Returns current flags set for console formatter
This commit is contained in:
Clemens Schwaighofer
2026-01-23 11:33:38 +09:00
parent 0b3c8fc774
commit 2748bc19be
2 changed files with 17 additions and 1 deletions

View File

@@ -774,6 +774,16 @@ class Log(LogParent):
self.__set_console_formatter(console_format_type)
)
def get_console_formatter(self) -> ConsoleFormat:
"""
Get the current console formatter, this the settings type
Note that if eg "ALL" is set it will return the combined information but not the ALL flag name itself
Returns:
ConsoleFormat -- _description_
"""
return self.log_settings['console_format_type']
# MARK: console handler
def __create_console_handler(
self, handler_name: str,