summaryrefslogtreecommitdiffstats
path: root/lib/private/Log
diff options
context:
space:
mode:
authorThomas Pulzer <t.pulzer@kniel.de>2016-07-22 11:44:19 +0200
committerThomas Pulzer <t.pulzer@kniel.de>2016-07-22 11:44:19 +0200
commitba3f4f118e8c48a23dcffa723e38439f0b9b7df9 (patch)
tree40cf7127d4bb63f362a37185820eee50fd849ce8 /lib/private/Log
parent4b4990c48fd4c6841bde260b2b2e1bc665b46e1c (diff)
downloadnextcloud-server-ba3f4f118e8c48a23dcffa723e38439f0b9b7df9.tar.gz
nextcloud-server-ba3f4f118e8c48a23dcffa723e38439f0b9b7df9.zip
Changed logtype to file instead of owncloud.
- Updated the config sample to point to log_type='file' - Renamed the Class for logfile logging to File in namespace 'OC\Log\'. Changed the occurrences of 'OC\Log\Owncloud' to 'OC\Log\File'. - Renamed the Class for log:file command to File in namespace 'OC\Core\Command\Log\File'. Changed registration of the command to use 'OC\Core\Command\Log\File'. - Changed default Syslog tag to Nextcloud - Retained backwards compatibility for configs with 'logtype' => 'owncloud' - Adjusted tests for the new file log. Closes #490.
Diffstat (limited to 'lib/private/Log')
-rw-r--r--lib/private/Log/File.php (renamed from lib/private/Log/Owncloud.php)2
-rw-r--r--lib/private/Log/Syslog.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Log/Owncloud.php b/lib/private/Log/File.php
index 2cc70015e3c..a406dd83952 100644
--- a/lib/private/Log/Owncloud.php
+++ b/lib/private/Log/File.php
@@ -39,7 +39,7 @@ namespace OC\Log;
* Log is saved at data/nextcloud.log (on default)
*/
-class Owncloud {
+class File {
static protected $logFile;
/**
diff --git a/lib/private/Log/Syslog.php b/lib/private/Log/Syslog.php
index c6ea0a40350..73978250310 100644
--- a/lib/private/Log/Syslog.php
+++ b/lib/private/Log/Syslog.php
@@ -38,7 +38,7 @@ class Syslog {
* Init class data
*/
public static function init() {
- openlog(\OC::$server->getSystemConfig()->getValue("syslog_tag", "ownCloud"), LOG_PID | LOG_CONS, LOG_USER);
+ openlog(\OC::$server->getSystemConfig()->getValue("syslog_tag", "Nextcloud"), LOG_PID | LOG_CONS, LOG_USER);
// Close at shutdown
register_shutdown_function('closelog');
}