$filename
- This
is the name of the file to copy/compress/and watch for changes
in. When used with the AW server this should always be set to
'world.log.old'.
$filenamepath
- This
is the full (absolute) path to the filename listed in $filename.
For example: If the AW server is installed to '/etc/awserver/'
then this variable would be set to '/etc/awserver/world.log.old'.
$filedata
- The filename listed
here is the file used for storing info about and tracking changes
in the file listed in $filename. The variable should be set
to the full (absolute) path of the file. You can name the data
file anything you like. For simplicity I stick to 'world.log.old.logsave'.
So, taking our example from earlier: If the AW server was installed
to '/etc/awserver/' then an acceptable value for this variable
would be '/etc/awserver/world.log.old.logsave'.
$backupdir
- This
is the directory to which the saved and compressed logs will
be copied to. This can be the absolute path to any directory
on the system where you would like to store these logs. I use
'/var/log/awserver/'.
$consoleout
- This
is a flag variable that turns on and off the console output.
Setting this to '1' turns on console output, '0' is off. The
debug log flag takes precedence (see below). I recommend leaving
console output off.
$debuglog
- This
is a flag variable that turns on and off the debug log. Setting
this to '1' turns on logging, '0' is off. The debug log flag
takes precedence over $consoleout. If both $consoleout and $debuglog
are on, only the debug log will be created. If only logging
is on then only the log will be created, and if only console
output is on then all output will be directed to the console.
If neither flag is on then all output will be discarded. Use
this with caution, the logs can grow very large.
$debuglogname
- The
absolute path to the debug log. This is created only when debug
logging is on. This log contains information about the path's
used, file names, file info, and status info.
$debugerrors
- The
absolute path to the error log. The log is only created when
debugging log is on. This log contains errors such a problems
encountered when opening a file.