From 91e5a870810b81d2d9dc30cc2e1cba91ac171d25 Mon Sep 17 00:00:00 2001 From: Sascha Wiswedel Date: Thu, 7 Jan 2021 20:29:13 +0100 Subject: [PATCH 1/4] added occ commands from Log Reader Signed-off-by: Sascha Wiswedel --- admin_manual/configuration_server/occ_command.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/admin_manual/configuration_server/occ_command.rst b/admin_manual/configuration_server/occ_command.rst index fd53c3e89..25e1f1b46 100644 --- a/admin_manual/configuration_server/occ_command.rst +++ b/admin_manual/configuration_server/occ_command.rst @@ -928,8 +928,10 @@ Logging commands These commands view and configure your Nextcloud logging preferences:: log - log:manage manage logging configuration - log:file manipulate Nextcloud logging backend + log:manage manage logging configuration + log:file manipulate Nextcloud logging backend + log:tail tail the nextcloud logfile [requires app "Log Reader" to be enabled] + log:watch watch the nextcloud logfile [requires app "Log Reader" to be enabled] Run ``log:file`` to see your current logging status:: From 6132dd9577f046c842f4d130e65dc83c80bca5f0 Mon Sep 17 00:00:00 2001 From: Sascha Wiswedel Date: Thu, 7 Jan 2021 20:47:05 +0100 Subject: [PATCH 2/4] cleaned up occ logging documentation Signed-off-by: Sascha Wiswedel --- admin_manual/configuration_server/occ_command.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/admin_manual/configuration_server/occ_command.rst b/admin_manual/configuration_server/occ_command.rst index 25e1f1b46..67cb9d673 100644 --- a/admin_manual/configuration_server/occ_command.rst +++ b/admin_manual/configuration_server/occ_command.rst @@ -933,22 +933,23 @@ These commands view and configure your Nextcloud logging preferences:: log:tail tail the nextcloud logfile [requires app "Log Reader" to be enabled] log:watch watch the nextcloud logfile [requires app "Log Reader" to be enabled] -Run ``log:file`` to see your current logging status:: +Run ``log:file [--] [--enable] [--file] [--rotate-size]`` to see your current logging status:: sudo -u www-data php occ log:file Log backend Nextcloud: enabled Log file: /opt/nextcloud/data/nextcloud.log Rotate at: disabled -Use the ``--enable`` option to turn on logging. Use ``--file`` to set a -different log file path. Set your rotation by log file size in bytes with -``--rotate-size``; 0 disables rotation. +* ``--enable`` turns on logging. +* ``--file`` sets a different log file path. +* ``--rotate-size`` sets your rotation by log file size in bytes with; 0 disables rotation. -``log:manage`` sets your logging backend, log level, and timezone. The defaults +``log:manage [--backend] [--level] [--timezone]`` sets your logging backend, log level, and timezone. The defaults are ``file``, ``warning``, and ``UTC``. Available options are: * ``--backend [file, syslog, errorlog, systemd]`` * ``--level [debug|info|warning|error|fatal]`` +* ``--timezone`` according to https://www.php.net/manual/en/timezones.php .. _maintenance_commands_label: From b77b014902fe0d1395a8d800806c7b6e6a00f51b Mon Sep 17 00:00:00 2001 From: Sascha Wiswedel Date: Thu, 7 Jan 2021 20:47:50 +0100 Subject: [PATCH 3/4] cleaned up order of occ logging documentation Signed-off-by: Sascha Wiswedel --- admin_manual/configuration_server/occ_command.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin_manual/configuration_server/occ_command.rst b/admin_manual/configuration_server/occ_command.rst index 67cb9d673..1bdddad40 100644 --- a/admin_manual/configuration_server/occ_command.rst +++ b/admin_manual/configuration_server/occ_command.rst @@ -928,8 +928,8 @@ Logging commands These commands view and configure your Nextcloud logging preferences:: log - log:manage manage logging configuration log:file manipulate Nextcloud logging backend + log:manage manage logging configuration log:tail tail the nextcloud logfile [requires app "Log Reader" to be enabled] log:watch watch the nextcloud logfile [requires app "Log Reader" to be enabled] From 16de88934aec52f1ea571f58a4f94acfb00ed04e Mon Sep 17 00:00:00 2001 From: Sascha Wiswedel Date: Thu, 7 Jan 2021 20:48:48 +0100 Subject: [PATCH 4/4] made log watching via occ more precise Signed-off-by: Sascha Wiswedel --- admin_manual/configuration_server/occ_command.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin_manual/configuration_server/occ_command.rst b/admin_manual/configuration_server/occ_command.rst index 1bdddad40..e20930016 100644 --- a/admin_manual/configuration_server/occ_command.rst +++ b/admin_manual/configuration_server/occ_command.rst @@ -931,7 +931,7 @@ These commands view and configure your Nextcloud logging preferences:: log:file manipulate Nextcloud logging backend log:manage manage logging configuration log:tail tail the nextcloud logfile [requires app "Log Reader" to be enabled] - log:watch watch the nextcloud logfile [requires app "Log Reader" to be enabled] + log:watch watch the nextcloud logfile live [requires app "Log Reader" to be enabled] Run ``log:file [--] [--enable] [--file] [--rotate-size]`` to see your current logging status::