diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-07 14:40:49 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-07 14:40:49 -0400 |
commit | 6361131d3f03bdc6f5642bfda8e1f165239d593a (patch) | |
tree | 1bcd0e73715502d516f08494fd71270c072492a7 /doc/config.markdown | |
parent | 300dabe6b4e9e648c1111363fad8154def7cfb5f (diff) |
Improve logging
Diffstat (limited to 'doc/config.markdown')
-rw-r--r-- | doc/config.markdown | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/config.markdown b/doc/config.markdown index 2f88d306..a8df887f 100644 --- a/doc/config.markdown +++ b/doc/config.markdown @@ -8,21 +8,13 @@ Enable/Disable debug mode ------------------------- ```php -define('DEBUG', false); +define('DEBUG', true); +define('LOG_DRIVER', 'file'); // Other drivers are: syslog, stdout, stderr or file ``` +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. -Debug file path ---------------- - -```php -define('DEBUG_FILE', __DIR__.'/data/debug.log'); -``` - -All debug information are saved in this file. -If you prefer to send logs to `stdout` or `stderr` replace the value by `php://stdout` or `php://stderr`. - Plugins folder -------------- @@ -157,6 +149,9 @@ define('LDAP_USER_ATTRIBUTE_EMAIL', 'mail'); // LDAP attribute to find groups in user profile define('LDAP_USER_ATTRIBUTE_GROUPS', 'memberof'); +// LDAP attribute for user avatar image: thumbnailPhoto or jpegPhoto +define('LDAP_USER_ATTRIBUTE_PHOTO', ''); + // Allow automatic LDAP user creation define('LDAP_USER_CREATION', true); @@ -227,13 +222,18 @@ define('ENABLE_XFRAME', true); Logging ------- +By default, Kanboard do not log anything. +If you want to enable the logging, you have to set a log driver. + ```php -// Enable syslog logging -// Set to false to disable syslog -define('ENABLE_SYSLOG', true); +// Available log drivers: syslog, stderr, stdout or file +define('LOG_DRIVER', ''); + +// Log filename if the log driver is "file" +define('LOG_FILE', __DIR__.DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.'debug.log'); ``` -Bruteforce protection +Brute-force protection --------------------- ```php |