Skip to content

Commit 64b3e7a

Browse files
feat: Provide logger formatter separately
1 parent b4571e6 commit 64b3e7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ansys/tools/common/logger.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,3 +200,6 @@ def log(self, level, msg, *args, **kwargs):
200200
This is a global instance of the Logger class that can be used throughout the application.
201201
It is initialized with default settings and can be configured as needed.
202202
"""
203+
204+
DEFAULT_LOGGER = CustomFormatter("%(asctime)s [%(levelname)-8s | %(module)s | %(funcName)s:%(lineno)-4d] > %(message)s")
205+
DEFAULT_LOGGER.set_column_width(15)

0 commit comments

Comments
 (0)