Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Which logger do I enable to print the query in System logs of Maximo ?
peraka
Hi All,
Could you please help me in enabling the logger in Maximo, so that it prints the whole query of the report in Maximo system logs.
I enabled few logs in debug mode and could see only where condition but not the whole query.
Thanks,
Suresh.
Find more posts tagged with
Comments
AbbyNL
This works great. You can set up the variable in the Initialize method then use it to add the sqlText once it is created.
To log custom information, you can use the mxReportScriptContext variable
throughout your report to get the script logger.
scriptLogger = mxReportScriptContext.getReportScriptLogger();
if (scriptLogger.isDebugEnabled())
{
scriptLogger.debug("***My Debug Message ****");
}
peraka
<blockquote class='ipsBlockquote' data-author="'AbbyNL'" data-cid="101605" data-time="1338778884" data-date="03 June 2012 - 08:01 PM"><p>
This works great. You can set up the variable in the Initialize method then use it to add the sqlText once it is created.<br />
<br />
To log custom information, you can use the mxReportScriptContext variable<br />
throughout your report to get the script logger.<br />
<br />
scriptLogger = mxReportScriptContext.getReportScriptLogger();<br />
if (scriptLogger.isDebugEnabled())<br />
{<br />
scriptLogger.debug("***My Debug Message ****");<br />
}<br /></p></blockquote>
Thank you so much. Will try this.