README.txt in File Log 6
===============================================================================
File logging
===============================================================================
A watchdog interface implementation which records system events directly into
files. This is an alternative to the Syslog core module.
===============================================================================
Configuration
===============================================================================
The project is configurable through the $conf array under the key 'filelog' in
the site's settings.php (DRUPAL/sites/<site directory>/settings.php).
All directive is optional.
Example configuration:
$conf['filelog'] = array(
'dir' => '/var/log/drupal/example.com',
'log_level' => WATCHDOG_INFO,
'site_in_name' => TRUE,
'type_in_name' => TRUE,
'severity_in_name' => TRUE,
'grouped_severity_in_name' => TRUE,
'daily_files' => TRUE,
'delete_files' => 7,
'field_separator' => ' | ',
'field_prefix' => '[',
'field_suffix' => ']',
'wrap_message' => TRUE,
'log_base_url' => TRUE,
'log_username' => TRUE,
'date_format' => 'medium',
'decode_severity' => TRUE,
'skip_strip_tags' => TRUE,
);
Logging directives:
-------------------
dir
Log directory. Defaults to sites/<site directory>/logs.
CAN'T CONTAIN TRAILING SLASH!
log_level
Maximum severity (inclusive) to log from WATCHDOG_EMERG(0) to
WATCHDOG_DEBUG(7). Defaults to WATCHDOG_DEBUG.
site_in_name
Add the name of the configuration directory (when TRUE) or the configured
string to the file name.
type_in_name
Add the $type argument of watchdog() to the file name.
severity_in_name
Add the decoded severity to the file name.
grouped_severity_in_name
Add one of the following parts to the file name:
debug: WATCHDOG_DEBUG;
info: WATCHDOG_INFO, WATCHDOG_NOTICE, WATCHDOG_WARNING;
error: all other levels.
Used only when NOT severity_in_name.
daily_files
Add the the current day's timestamp to the file name in the form YYYYMMDD.
delete_files
Delete log files after the configured DAYS during cron run. Used only when
daily_files is enabled.
Theming directives:
-------------------
field_separator
Text to use to separe fields in records.
field_prefix
Text to use to prefix fields in records.
field_suffix
Text to use to suffix fields in records.
wrap_message
Add the prefix and suffix to the message field, too.
log_base_url
Add the base url to the record.
log_username
Add the username to the record instead of the UID.
date_format
Controls how to format the timestamp in the record.
Possible values are 'small', 'medium', 'large' or a custom format acceptable
by format_date().
decode_severity
Add severity to the record as text not as number.
skip_strip_tags
Message and link fields are running through strip_tags() by default.
===============================================================================
Install, unistall
===============================================================================
Configuration must be done before install!
Backup should be done before uninstall!
===============================================================================
Maintainer
===============================================================================
István Németh <i.nemeth@xmarket.hu>
http://drupal.org/user/231445
File
README.txt
View source
-
- ===============================================================================
- File logging
- ===============================================================================
- A watchdog interface implementation which records system events directly into
- files. This is an alternative to the Syslog core module.
-
-
- ===============================================================================
- Configuration
- ===============================================================================
- The project is configurable through the $conf array under the key 'filelog' in
- the site's settings.php (DRUPAL/sites//settings.php).
-
- All directive is optional.
-
- Example configuration:
-
- $conf['filelog'] = array(
- 'dir' => '/var/log/drupal/example.com',
- 'log_level' => WATCHDOG_INFO,
- 'site_in_name' => TRUE,
- 'type_in_name' => TRUE,
- 'severity_in_name' => TRUE,
- 'grouped_severity_in_name' => TRUE,
- 'daily_files' => TRUE,
- 'delete_files' => 7,
- 'field_separator' => ' | ',
- 'field_prefix' => '[',
- 'field_suffix' => ']',
- 'wrap_message' => TRUE,
- 'log_base_url' => TRUE,
- 'log_username' => TRUE,
- 'date_format' => 'medium',
- 'decode_severity' => TRUE,
- 'skip_strip_tags' => TRUE,
- );
-
- Logging directives:
- -------------------
- dir
- Log directory. Defaults to sites//logs.
- CAN'T CONTAIN TRAILING SLASH!
-
- log_level
- Maximum severity (inclusive) to log from WATCHDOG_EMERG(0) to
- WATCHDOG_DEBUG(7). Defaults to WATCHDOG_DEBUG.
-
- site_in_name
- Add the name of the configuration directory (when TRUE) or the configured
- string to the file name.
-
- type_in_name
- Add the $type argument of watchdog() to the file name.
-
- severity_in_name
- Add the decoded severity to the file name.
-
- grouped_severity_in_name
- Add one of the following parts to the file name:
- debug: WATCHDOG_DEBUG;
- info: WATCHDOG_INFO, WATCHDOG_NOTICE, WATCHDOG_WARNING;
- error: all other levels.
- Used only when NOT severity_in_name.
-
- daily_files
- Add the the current day's timestamp to the file name in the form YYYYMMDD.
-
- delete_files
- Delete log files after the configured DAYS during cron run. Used only when
- daily_files is enabled.
-
- Theming directives:
- -------------------
- field_separator
- Text to use to separe fields in records.
-
- field_prefix
- Text to use to prefix fields in records.
-
- field_suffix
- Text to use to suffix fields in records.
-
- wrap_message
- Add the prefix and suffix to the message field, too.
-
- log_base_url
- Add the base url to the record.
-
- log_username
- Add the username to the record instead of the UID.
-
- date_format
- Controls how to format the timestamp in the record.
- Possible values are 'small', 'medium', 'large' or a custom format acceptable
- by format_date().
-
- decode_severity
- Add severity to the record as text not as number.
-
- skip_strip_tags
- Message and link fields are running through strip_tags() by default.
-
-
- ===============================================================================
- Install, unistall
- ===============================================================================
- Configuration must be done before install!
-
- Backup should be done before uninstall!
-
-
- ===============================================================================
- Maintainer
- ===============================================================================
- István Németh
- http://drupal.org/user/231445