The object of the CENPyOlpLogOperator class may be used in callback methods to output text to the Edition 2 log.
[Example 1]
def PostTechInitAttributes(techAttribInitOperator):
logOperator = techAttribInitOperator.GetLoggerOperator()
def PostInitManufacturingGeometry(techMfGeoInitOperator):
logOperator = techMfGeoInitOperator.GetLoggerOperator()
[Example 2]
def PostWmInitAttributes(wmAttribInitOperator):
logOperator = wmAttribInitOperator.GetLoggerOperator()
[Example]
logOperator.LogDebug('Text of debug message')
[Example]
logOperator.LogInfo('Text of information message')
[Example]
logOperator.LogWarn('Text of warning message')
[Example]
logOperator.LogError('Text of error message')
[Example]
logOperator.LogFatal('Text of fatal error message')
|