PyFoam.Infrastructure.Logging module

Writes Logfiles

class PyFoam.Infrastructure.Logging.DummyLogger[source]

Bases: object

__dict__ = mappingproxy({'__weakref__': <attribute '__weakref__' of 'DummyLogger' objects>, '__init__': <function DummyLogger.__init__>, '__doc__': None, '__dict__': <attribute '__dict__' of 'DummyLogger' objects>, '__module__': 'PyFoam.Infrastructure.Logging', 'info': <function DummyLogger.info>})
__init__()[source]
__module__ = 'PyFoam.Infrastructure.Logging'
__weakref__

list of weak references to the object (if defined)

info(arg)[source]
PyFoam.Infrastructure.Logging._getLoggingLevel(name)[source]

Gets the logging level value from its name

PyFoam.Infrastructure.Logging.foamLogger(name='general')[source]
Parameters:name – name of the logfile
Returns:a logger that is correctly set up for pyFoam