Nektar++
Public Member Functions | Public Attributes | List of all members
CellMLToNektar.utilities.NotifyHandler Class Reference
Inheritance diagram for CellMLToNektar.utilities.NotifyHandler:
[legend]

Public Member Functions

def __init__ (self, level=logging.NOTSET)
 
def emit (self, record)
 
def reset (self)
 

Public Attributes

 messages
 

Detailed Description

A logging handler that just notes if any messages are logged.

Definition at line 79 of file utilities.py.

Constructor & Destructor Documentation

◆ __init__()

def CellMLToNektar.utilities.NotifyHandler.__init__ (   self,
  level = logging.NOTSET 
)

Definition at line 83 of file utilities.py.

83 def __init__(self, level=logging.NOTSET):
84 logging.Handler.__init__(self, level=level)
85 self.reset()
86

References CellMLToNektar.utilities.NotifyHandler.reset().

Member Function Documentation

◆ emit()

def CellMLToNektar.utilities.NotifyHandler.emit (   self,
  record 
)

Definition at line 87 of file utilities.py.

87 def emit(self, record):
88 self.messages = True
89

◆ reset()

def CellMLToNektar.utilities.NotifyHandler.reset (   self)
Reset the handler, as if no messages have occurred.

Definition at line 90 of file utilities.py.

90 def reset(self):
91 """Reset the handler, as if no messages have occurred."""
92 self.messages = False
93
94

References CellMLToNektar.utilities.NotifyHandler.messages.

Referenced by CellMLToNektar.utilities.NotifyHandler.__init__().

Member Data Documentation

◆ messages

CellMLToNektar.utilities.NotifyHandler.messages

Definition at line 88 of file utilities.py.

Referenced by CellMLToNektar.utilities.NotifyHandler.reset().