Skip to content

Commit

Permalink
ENH add critical logger method to logging wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr authored and rmjarvis committed May 16, 2024
1 parent ffdabb9 commit f16131a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions galsim/config/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ def error(self, *args, **kwargs):
if self.logger and self.isEnabledFor(logging.ERROR):
self.logger.error(*args, **kwargs)

def critical(self, *args, **kwargs):
if self.logger and self.isEnabledFor(logging.CRITICAL):
self.logger.critical(*args, **kwargs)

def log(self, level, *args, **kwargs):
if self.logger and self.isEnabledFor(level):
self.logger.log(level, *args, **kwargs)
Expand Down

0 comments on commit f16131a

Please sign in to comment.