PyFoam.Infrastructure.Logging module

Writes Logfiles

class PyFoam.Infrastructure.Logging.DummyLogger[source]

Bases: object

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

Initialize self. See help(type(self)) for accurate signature.

__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