Forums / Install & configuration / location of error log for a specific siteaccess

location of error log for a specific siteaccess

Author Message

Claudia Kosny

Friday 09 February 2007 4:45:19 am

Hi there

Is there a way to specify the location of the error log for each siteaccess? I have quite a few siteaccesses which use the same database but different templates and settings and it would be nice to have the errors separate for each siteaccess.

The setting LogDir in [FileSettings] in site.ini just determines the location of the storage.log and I could not find any other suitable setting or ini file.

Thanks

Claudia

Yves B

Monday 26 March 2007 8:30:45 am

Hi,

I'd also like to monitor separately the public site from administrative site.

LogFiles are hard coded in EzDebug, may be because some errors may be traced before knowing the siteaccess ?

The shortest way I found was to change ezDebug "writeFile" to include from :

$logDir = $logFileData[0];
$logName = $logFileData[1];

to :

$ini =& eZINI::instance();
$logSite = $ini->variable( 'SiteSettings', 'SiteURL' );
$logDir = $logFileData[0];
$logName = $logSite.'_'.$logFileData[1];

It suits my needs, and, I think, maintains log rotation.

Felix Woldt

Monday 26 March 2007 11:10:16 am

This is a bug. Have a look to this bugreports:

http://issues.ez.no/IssueView.php?Id=8397&activeItem=6
http://issues.ez.no/IssueView.php?Id=10366

http://www.jac-systeme.de - Developers united in eZ Publish: http://www.cjw-network.com

CJW Newsletter 1.0.0 released: http://projects.ez.no/cjw_newsletter

Ɓukasz Serwatka

Tuesday 27 March 2007 12:18:48 am

Hi,

Fix for this issue is addressed for next eZ Publish 3.9.2 sub-release.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

meinhard benn

Monday 30 March 2009 2:12:12 pm

This bug is back, because the fix had been reverted. See my comment: http://issues.ez.no/IssueView.php?Id=10366&ProjectId=3#Comment261080

http://goozee.benn.org/ - Google Co-op for eZ sites