Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » logs cleanup - web viewer
logs cleanup - web viewer [message #644981] Wed, 15 December 2010 04:20 Go to next message
Josh Hall is currently offline Josh HallFriend
Messages: 31
Registered: October 2010
Member
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 14:40 Go to previous messageGo to next message
Richard A. Polunsky is currently offline Richard A. PolunskyFriend
Messages: 212
Registered: July 2009
Location: Houston TX
Senior Member

No Message Body
Re: logs cleanup - web viewer [message #645131 is a reply to message #644981] Wed, 15 December 2010 16:16 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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] Tue, 21 December 2010 00:45 Go to previous messageGo to next message
Josh Hall is currently offline Josh HallFriend
Messages: 31
Registered: October 2010
Member
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 14:24 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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: Fri Mar 29 10:00:38 GMT 2024

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

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

Back to the top