Skip to main content



      Home
Home » Archived » BIRT » logs cleanup - web viewer
logs cleanup - web viewer [message #644981] Tue, 14 December 2010 23:20 Go to next message
Eclipse UserFriend
The birt viewer web app has a 'logs' directory as defined by BIRT_VIEWER_LOG_DIR in web.xml. Anybody know there's a mechanism for cleaning up old logs from this directory? Mine just keeps filling up (actually caused the app to fail!).
Re: logs cleanup - web viewer [message #645083 is a reply to message #644981] Wed, 15 December 2010 09:40 Go to previous messageGo to next message
Eclipse UserFriend
No Message Body
Re: logs cleanup - web viewer [message #645131 is a reply to message #644981] Wed, 15 December 2010 11:16 Go to previous messageGo to next message
Eclipse UserFriend
Josh,

I know the team has added
config.setLogMaxBackupIndex(int);
config.setLogRollingSize(int);
to the EngineConfig, but I do not think its in the viewer yet.
You may want to log a bug for this.

Also you could look at using log4j
http://wiki.eclipse.org/BIRT/FAQ/Deployment#Q:_Can_I_use_Log 4j_with_BIRT.3F
http://logging.apache.org/log4j/1.2/manual.html

Jason


On 12/14/2010 11:20 PM, Josh wrote:
> The birt viewer web app has a 'logs' directory as defined by
> BIRT_VIEWER_LOG_DIR in web.xml. Anybody know there's a mechanism for
> cleaning up old logs from this directory? Mine just keeps filling up
> (actually caused the app to fail!).
Re: logs cleanup - web viewer [message #645890 is a reply to message #645131] Mon, 20 December 2010 19:45 Go to previous messageGo to next message
Eclipse UserFriend
logMaxBackupIndex actually defaults to 1 (so no need to explicitly set it). It only helps if it's a single file being 'rolled over' due to reaching the predefined size, however the Birt Viewer creates files with unique filenames so they're never very large, but there are many of them. logMaxBackupIndex won't help here.

Ideally I'd like to pass my web application's Apache commons logger to the BIRT engine config, however BIRT uses JDK logging, and I can't figure out how to do that. The following snippet describes what I'd like to do:-

Log log = LogFactory.getLog(this.getClass()); // Get Apache commons Log
ReportEngineService.getInstance().getEngineConfig().setLogger(log); // Type mismatch!


Are there any suggestions on how I might do this?
Re: logs cleanup - web viewer [message #646000 is a reply to message #645890] Tue, 21 December 2010 09:24 Go to previous message
Eclipse UserFriend
Josh,

I have not tried this before. Have you tried the method described here:
http://wiki.eclipse.org/BIRT/FAQ/Deployment#Q:_Can_I_use_Log 4j_with_BIRT.3F

Jason

On 12/20/2010 7:45 PM, Josh wrote:
> logMaxBackupIndex actually defaults to 1 (so no need to explicitly set
> it). It only helps if it's a single file being 'rolled over' due to
> reaching the predefined size, however the Birt Viewer creates files with
> unique filenames so they're never very large, but there are many of
> them. logMaxBackupIndex won't help here.
>
> Ideally I'd like to pass my web application's Apache commons logger to
> the BIRT engine config, however BIRT uses JDK logging, and I can't
> figure out how to do that. The following snippet describes what I'd like
> to do:-
>
>
> Log log = LogFactory.getLog(this.getClass()); // Get Apache commons Log
> ReportEngineService.getInstance().getEngineConfig().setLogge r(log); //
> Type mismatch!
>
>
> Are there any suggestions on how I might do this?
Previous Topic:Hide empty row in crosstab
Next Topic:Hidden Report Paremeter
Goto Forum:
  


Current Time: Wed Jul 23 02:10:18 EDT 2025

Powered by FUDForum. Page generated in 0.08716 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top