BIRT Exchange Forum: Which logger do I enable to print the query in System logs of Maximo ? - BIRT Exchange Forum

Jump to content


 

No Latest Open Poll.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Which logger do I enable to print the query in System logs of Maximo ? Rate Topic: -----

#1 User is offline   peraka Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 87
  • Joined: 07-November 11


Posted 31 May 2012 - 05:08 PM

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.
-1

#2 User is offline   AbbyNL Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 25
  • Joined: 28-December 07


Posted 03 June 2012 - 07:01 PM

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 ****");
}
0

#3 User is offline   peraka Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 87
  • Joined: 07-November 11


Posted 05 June 2012 - 05:14 PM

View PostAbbyNL, on 03 June 2012 - 08:01 PM, said:

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 ****");
}

Thank you so much. Will try this.
-1

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users