|
92.
|
|
|
**LOG_TARGET_FILE**: This allows you to specify a file to which messages will be logged. It's best to pick a path in dataroot, but note that log files tend to get very large over time. So it's advisable to implement some kind of logrotate if you want to leave this on all the time. The other option is to just turn this option on when you are getting a specific error or want to see the logging, and know that you're not going to let the log file get large.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:235
|
|
93.
|
|
|
You can combine the targets with bitwise operations, e.g. ``LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG``.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:237
|
|
94.
|
|
|
log_file: File containing error messages
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:195
|
|
95.
|
|
|
``$cfg->log_file = '/path/to/dataroot/error.log';``
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:197
|
|
96.
|
|
|
If you use LOG_TARGET_FILE, this is the file to which errors will be logged. By default, it will write to the file ``error.log`` under the dataroot. If you change this in config.php, make sure you use a folder which is writable by the web server.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:199
|
|
97.
|
|
|
log_backtrace_levels: Log backtraces
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:167
|
|
98.
|
|
|
For example: ``$cfg->log_backtrace_levels = LOG_LEVEL_WARN | LOG_LEVEL_ENVIRON;`` (default)
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:169
|
|
99.
|
|
|
The log levels that will generate backtraces. Useful for development, but probably only warnings are useful on a live site.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:171
|
|
100.
|
|
|
log_backtrace_print_args: Log backtraces
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:180
|
|
101.
|
|
|
``$cfg->log_backtrace_print_args = null;`` (default)
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:182
|