Log file rotation

Author Message

Andrew Kelly

Friday 09 December 2005 2:14:24 am

Hi all,

can anybody explain to me the process that rotates the log files in var/log?
I'm seeing rotation at very odd intervals.

Thanks.
Andy

Paul Forsyth

Friday 09 December 2005 11:46:41 am

It looks like there are two settings for this but both are identical:

lib/ezfile/classes/ezlog.php:

define( "EZ_MAX_LOGROTATE_FILES", 3 );
define( "EZ_MAX_LOGFILE_SIZE", 200*1024 );

lib/ezutils/classes/ezdebug.php:

define( "EZ_DEBUG_MAX_LOGFILE_SIZE", 200*1024 );
define( "EZ_DEBUG_MAX_LOGROTATE_FILES", 3 );

paul

Andrew Kelly

Monday 12 December 2005 2:59:24 am

Thanks for the reply, Paul.

So if I'm reading and understanding correctly, there are no ini
settings to control the behavior, it's defined directly in the class
files. And the definitions are to rotate at 200 Kb and only keep
3 "older logfiles". Am I getting it?

If so, blaaa!

I just went live with a site and was having useful error data rolling
off the "back side" within a quarter hour. Not groovy.

Ok, if these limits are set in classes and have no ini control, am I correct in
assuming that there is a good reason for this? Will I, for example, be taking
one on the nose if I change those to values to 5 Mb and 10 rotations?

Andy

Paul Forsyth

Monday 12 December 2005 3:20:26 am

Yes, it is somewhat hard coded.

If you up the values the only issue should be disk space. So, its pretty safe.

Paul

Andrew Kelly

Monday 12 December 2005 5:38:44 am

Great, thanks for the info!

Andy

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 15:21:00
Script start
Timing: Jan 19 2025 15:21:00
Module start 'layout'
Timing: Jan 19 2025 15:21:00
Module start 'content'
Timing: Jan 19 2025 15:21:01
Module end 'content'
Timing: Jan 19 2025 15:21:01
Script end

Main resources:

Total runtime0.8267 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.0313152.6094
Module start 'layout' 0.00530.0023 741.640639.4141
Module start 'content' 0.00760.8176 781.0547531.7734
Module end 'content' 0.82520.0015 1,312.828112.1875
Script end 0.8267  1,325.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3924160.0002
Check MTime0.00120.1451160.0001
Mysql Total
Database connection0.00070.086110.0007
Mysqli_queries0.767492.8230630.0122
Looping result0.00060.0778610.0000
Template Total0.795396.220.3977
Template load0.00210.252720.0010
Template processing0.793295.950220.3966
Template load and register function0.00010.012210.0001
states
state_id_array0.00090.103310.0009
state_identifier_array0.00170.211120.0009
Override
Cache load0.00170.2057400.0000
Sytem overhead
Fetch class attribute can translate value0.00050.066020.0003
Fetch class attribute name0.00110.132360.0002
XML
Image XML parsing0.00060.069920.0003
class_abstraction
Instantiating content class attribute0.00000.002380.0000
General
dbfile0.00080.0967160.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs