From 2a5b0b848b675865d8b74712fb5a6e8a2450fa24 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 79eac7881..dc0840fbb 100644 --- a/admin_manual/configuration_server/occ_command.rst +++ b/admin_manual/configuration_server/occ_command.rst @@ -931,8 +931,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 9ee513cd02136f2dc32bbf703fae3871f595e4db 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 dc0840fbb..788da4c6d 100644 --- a/admin_manual/configuration_server/occ_command.rst +++ b/admin_manual/configuration_server/occ_command.rst @@ -936,22 +936,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 aadc4dd3fff9d67e82afb1c50015f7aa258a5b7d 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 788da4c6d..f2ed7ff6a 100644 --- a/admin_manual/configuration_server/occ_command.rst +++ b/admin_manual/configuration_server/occ_command.rst @@ -931,8 +931,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 b9a16e447e7f58d0fcff30ea9b23e330b74567d2 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 f2ed7ff6a..a9e35228b 100644 --- a/admin_manual/configuration_server/occ_command.rst +++ b/admin_manual/configuration_server/occ_command.rst @@ -934,7 +934,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::