Skip to content

Commit

Permalink
stateengine plugin: (re)introduce separate loggers for each stateengi…
Browse files Browse the repository at this point in the history
…ne item. Custom logger stateengine.<item>.rules
  • Loading branch information
onkelandy committed Jul 6, 2023
1 parent 04f01f9 commit aa0b039
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stateengine/StateEngineLogger.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ def create(item):
# Constructor
# item: item for which the detailed log is (used as part of file name)
def __init__(self, item):
self.logger = StateEngineDefaults.se_logger
#self.logger = StateEngineDefaults.se_logger
self.logger = logging.getLogger('stateengine.{}'.format(item.property.path))
self.__section = item.property.path.replace(".", "_").replace("/", "")
self.__indentlevel = 0
self.__loglevel = StateEngineDefaults.log_level
Expand Down

0 comments on commit aa0b039

Please sign in to comment.