Skip to content

Commit 88720d0

Browse files
dichndsikkashanjiaz
authored
[Logging] Switch from Standard Logging to Loguru (#1521)
## Purpose ## As loguru is used in some places, we update other logging instances for consistency with its behavior ## Changes ## * metrics/logger.py: Change `level: Optional[int]` to `level: Optional[Union[int, str]]` to better support loguru's logging level behavior * Update `PythonLogger._create_default_logger` to use loguru.logger * Simplify `SparsificationGroupLogger` by replacing the `python` union type with `bool`, aligning it with `log_python` in `LoggerManager` and removing ambiguity --------- Co-authored-by: Dipika Sikka <dipikasikka1@gmail.com> Co-authored-by: shanjiaz <43143795+shanjiaz@users.noreply.github.com>
1 parent 9d8a464 commit 88720d0

File tree

1 file changed

+72
-97
lines changed

1 file changed

+72
-97
lines changed

0 commit comments

Comments
 (0)