summaryrefslogtreecommitdiffstats
path: root/settings/Controller/LogSettingsController.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-11-21 13:46:31 +0100
committerRobin Appelman <robin@icewind.nl>2016-11-21 13:46:31 +0100
commitc694bd34551affce44418541a3d1121c0dd04f2c (patch)
tree6f9ade6c3b03c334bf2d39d9bbf546e46940f590 /settings/Controller/LogSettingsController.php
parentba9b17c9069c5d9fe8595ffd306647f33067c927 (diff)
downloadnextcloud-server-c694bd34551affce44418541a3d1121c0dd04f2c.tar.gz
nextcloud-server-c694bd34551affce44418541a3d1121c0dd04f2c.zip
remove old logging section
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'settings/Controller/LogSettingsController.php')
-rw-r--r--settings/Controller/LogSettingsController.php57
1 files changed, 0 insertions, 57 deletions
diff --git a/settings/Controller/LogSettingsController.php b/settings/Controller/LogSettingsController.php
index 23e0fba902a..e87d201a83b 100644
--- a/settings/Controller/LogSettingsController.php
+++ b/settings/Controller/LogSettingsController.php
@@ -42,63 +42,6 @@ use OCP\IConfig;
*/
class LogSettingsController extends Controller {
/**
- * @var \OCP\IConfig
- */
- private $config;
-
- /**
- * @var \OCP\IL10N
- */
- private $l10n;
-
- /**
- * @param string $appName
- * @param IRequest $request
- * @param IConfig $config
- */
- public function __construct($appName,
- IRequest $request,
- IConfig $config,
- IL10N $l10n) {
- parent::__construct($appName, $request);
- $this->config = $config;
- $this->l10n = $l10n;
- }
-
- /**
- * set log level for logger
- *
- * @param int $level
- * @return JSONResponse
- */
- public function setLogLevel($level) {
- if ($level < 0 || $level > 4) {
- return new JSONResponse([
- 'message' => (string) $this->l10n->t('log-level out of allowed range'),
- ], Http::STATUS_BAD_REQUEST);
- }
-
- $this->config->setSystemValue('loglevel', $level);
- return new JSONResponse([
- 'level' => $level,
- ]);
- }
-
- /**
- * get log entries from logfile
- *
- * @param int $count
- * @param int $offset
- * @return JSONResponse
- */
- public function getEntries($count=50, $offset=0) {
- return new JSONResponse([
- 'data' => \OC\Log\File::getEntries($count, $offset),
- 'remain' => count(\OC\Log\File::getEntries(1, $offset + $count)) !== 0,
- ]);
- }
-
- /**
* download logfile
*
* @NoCSRFRequired