Python scripting - Common operators

CENPyOlpLogOperator

Previous  Chapter  Next

 

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()

 

 

Methods

 

LogDebug(msg: string)

 

o

msg

Text of the message

 

[Example]

   logOperator.LogDebug('Text of debug message')

 


 

LogInfo(msg: string)

 

o

msg

Text of the message

 

[Example]

   logOperator.LogInfo('Text of information message')

 


 

LogWarn(msg: string)

 

o

msg

Text of the message

 

[Example]

   logOperator.LogWarn('Text of warning message')

 


 

LogError(msg: string)

 

o

msg

Text of the message

 

[Example]

  logOperator.LogError('Text of error message')

 


 

LogFatal(msg: string)

 

o

msg

Text of the message

 

[Example]

  logOperator.LogFatal('Text of fatal error message')

 


 

 


Previous
Previous page
Chapter
Chapter page
Next
Next page