Define libraries
from psdi.util.logging import MXLoggerFactory
from psdi.util.logging import MXLogger
call logs
log = MXLoggerFactory.getLogger("maximo.application.AUTOSCRIPT")
scriptname="<script_name>"
log.info("******Entering Autoscript : " +scriptname +"******")
<Script body>
log.info("******Exiting Autoscript : " +scriptname +"******")
from psdi.util.logging import MXLoggerFactory
from psdi.util.logging import MXLogger
call logs
log = MXLoggerFactory.getLogger("maximo.application.AUTOSCRIPT")
scriptname="<script_name>"
log.info("******Entering Autoscript : " +scriptname +"******")
<Script body>
log.info("******Exiting Autoscript : " +scriptname +"******")
No comments:
Post a Comment