Add system log driver and use it by default
This commit is contained in:
@@ -9,14 +9,15 @@ Enable/Disable debug mode
|
||||
|
||||
```php
|
||||
define('DEBUG', true);
|
||||
define('LOG_DRIVER', 'file'); // Other drivers are: syslog, stdout, stderr or file
|
||||
define('LOG_DRIVER', 'file'); // Other drivers are: syslog, stdout, stderr, system or file
|
||||
|
||||
// By default, the log file is in data/debug.log but you can change the path:
|
||||
define('LOG_FILE', '/path/to/debug.log');
|
||||
```
|
||||
|
||||
The log driver must be defined if you enable the debug mode.
|
||||
The debug mode logs all SQL queries and the time taken to generate pages.
|
||||
- The log driver must be defined if you enable the debug mode.
|
||||
- The debug mode logs all SQL queries and the time taken to generate pages.
|
||||
- The `system` driver use the built-in PHP logger which could be configured in the [php.ini](http://php.net/manual/en/errorfunc.configuration.php#ini.error-log). By default, log messages are sent to the web server logs.
|
||||
|
||||
Plugins
|
||||
-------
|
||||
|
||||
@@ -17,7 +17,7 @@ From the archive (stable version)
|
||||
The `data` folder is used to store:
|
||||
|
||||
- Sqlite database: `db.sqlite`
|
||||
- Debug file: `debug.log` (if debug mode is enabled)
|
||||
- Debug file: `debug.log` (if debug mode is enabled with the `file` driver)
|
||||
- Uploaded files: `files/*`
|
||||
- Image thumbnails: `files/thumbnails/*`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user