deprecate value monolog
for config system.logger_config
This commit is contained in:
parent
6b36d3e87f
commit
af29baf11e
2 changed files with 11 additions and 1 deletions
|
@ -45,6 +45,15 @@ final class DelegatingLoggerFactory implements LoggerFactory
|
||||||
{
|
{
|
||||||
$factoryName = $this->config->get('system', 'logger_config') ?? '';
|
$factoryName = $this->config->get('system', 'logger_config') ?? '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated 2025.02 The value `monolog` for `system.logger_config` inside the `config/local.config.php` file is deprecated, please use `stream` or `syslog` instead.
|
||||||
|
*/
|
||||||
|
if ($factoryName === 'monolog') {
|
||||||
|
@trigger_error('The config `system.logger_config` with value `monolog` is deprecated since 2025.02 and will stop working in 5 months, please change the value to `stream` or `syslog` in the `config/local.config.php` file.', \E_USER_DEPRECATED);
|
||||||
|
|
||||||
|
$factoryName = 'stream';
|
||||||
|
}
|
||||||
|
|
||||||
if (!array_key_exists($factoryName, $this->factories)) {
|
if (!array_key_exists($factoryName, $this->factories)) {
|
||||||
return new NullLogger();
|
return new NullLogger();
|
||||||
}
|
}
|
||||||
|
|
|
@ -334,7 +334,8 @@ return [
|
||||||
'lock_driver' => '',
|
'lock_driver' => '',
|
||||||
|
|
||||||
// logger_config (String)
|
// logger_config (String)
|
||||||
// Sets the logging adapter of Friendica globally (monolog, syslog, stream)
|
// Sets the logging adapter of Friendica globally (syslog, stream)
|
||||||
|
// @deprecated 2025.02 The value `monolog` is deprecated, please use `stream` or `syslog` instead.
|
||||||
'logger_config' => 'stream',
|
'logger_config' => 'stream',
|
||||||
|
|
||||||
// syslog_flags (Integer)
|
// syslog_flags (Integer)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue