Nextcloud – LogLevel einstellen

Der Loglevel steht standardmäßig auf ‘2’, und somit werden Warn Meldungen in der Protokolldatei geschrieben. Will man das nicht, dann muss man de LogLevel in der /config/config.php anpassen. Folgende LogLevel sind möglich:

  • 0: DEBUG: All activity; the most detailed logging.
  • 1: INFO: Activity such as user logins and file activities, plus warnings, errors, and fatal errors.
  • 2: WARN: Operations succeed, but with warnings of potential problems, plus errors and fatal errors.
  • 3: ERROR: An operation fails, but other services and operations continue, plus fatal errors.
  • 4: FATAL: The server stops.

Den LogLevel 0 sollte man nur verwenden, wenn man nach Fehlern sucht. Der Eintrag in der config.php sieht folgendermaßen aus:

‘loglevel’ => 2,

Weitere Informationen zum Logging in Nextcloud findet man in der entsprechenden Dokumentation unter dem Link

https://docs.nextcloud.com/server/15/admin_manual/configuration_server/logging_configuration.html