Skip to content

Commit

Permalink
Add module name in logger format
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Jan 24, 2024
1 parent fe239d6 commit e9fdcc4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netfuse/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Place holder package"""

version = "0.0.4"
version = "0.0.5"
4 changes: 3 additions & 1 deletion netfuse/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

LOGGER = logging.getLogger(__name__)
_HANDLER = logging.StreamHandler()
_FORMATTER = logging.Formatter('%(asctime)s - %(levelname)s - [%(module)s:%(lineno)d] - %(funcName)s - %(message)s')
_FORMATTER = logging.Formatter(
'%(asctime)s - %(levelname)s - [NetFuse:%(module)s:%(lineno)d] - %(funcName)s - %(message)s'
)
_HANDLER.setFormatter(_FORMATTER)
LOGGER.addHandler(_HANDLER)
LOGGER.setLevel(logging.INFO)
4 changes: 4 additions & 0 deletions release_notes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Release Notes
=============

v0.0.5 (01/24/2024)
-------------------
- Includes module name in logger format

v0.0.4 (11/30/2023)
-------------------
- Includes customized error messages with alternate recommendations
Expand Down

0 comments on commit e9fdcc4

Please sign in to comment.