Merge pull request #19957 from owncloud/volter-master
Expose syslog tag in the configuration
This commit is contained in:
commit
3d08964b64
|
@ -513,6 +513,14 @@ $CONFIG = array(
|
|||
*/
|
||||
'loglevel' => 2,
|
||||
|
||||
/**
|
||||
* If you maintain different instances and aggregate the logs, you may want
|
||||
* to distinguish between them. ``syslog_tag`` can be set per instance
|
||||
* with a unique id. Only available if ``log_type`` is set to ``syslog``.
|
||||
* The default value is ``ownCloud``.
|
||||
*/
|
||||
'syslog_tag' => 'ownCloud',
|
||||
|
||||
/**
|
||||
* Log condition for log level increase based on conditions. Once one of these
|
||||
* conditions is met, the required log level is set to debug. This allows to
|
||||
|
|
|
@ -34,7 +34,7 @@ class OC_Log_Syslog {
|
|||
* Init class data
|
||||
*/
|
||||
public static function init() {
|
||||
openlog('ownCloud', LOG_PID | LOG_CONS, LOG_USER);
|
||||
openlog(OC_Config::getValue("syslog_tag", "ownCloud"), LOG_PID | LOG_CONS, LOG_USER);
|
||||
// Close at shutdown
|
||||
register_shutdown_function('closelog');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue