Ubuntu 20.04 上 Odoo 15 日志文件的位置在哪里

Where is the location of Odoo 15 log file on Ubuntu 20.04

我在 Ubuntu 20.04 上找不到 Odoo 15 的 Odoo 日志文件。 /var/log

处没有与日志记录相关的 Odoo 文件夹或文件
root@admin:/var/log# ls -l
total 4648
-rw-r--r--  1 root        root              11701 Nov 19 03:50 alternatives.log
drwxr-x---  2 root        adm                4096 Nov 22 00:00 apache2
drwxr-xr-x  2 root        root               4096 Nov 19 07:16 apt
-rw-r-----  1 syslog      adm              855529 Nov 22 03:28 auth.log
-rw-r-----  1 syslog      adm             1181873 Nov 21 00:00 auth.log.1
-rw-rw----  1 root        utmp            2396545 Nov 22 03:28 btmp
-rw-r--r--  1 root        adm                   0 May 25 19:28 dmesg
-rw-r--r--  1 root        root             135962 Nov 19 07:17 dpkg.log
drwxr-s---  2 Debian-exim adm                4096 Nov 22 00:10 exim4
-rw-r--r--  1 root        root               3520 Nov 19 02:55 faillog
-rw-r--r--  1 root        root               1702 Nov 19 07:17 fontconfig.log
drwxr-sr-x+ 3 root        systemd-journal    4096 May 25 19:28 journal
-rw-rw-r--  1 root        utmp              32120 Nov 22 03:28 lastlog
drwxrwxr-t  2 root        postgres           4096 Nov 21 00:00 postgresql
drwx------  2 root        root               4096 May 25 02:07 private
-rw-r-----  1 syslog      adm                4205 Nov 22 03:25 syslog
-rw-r-----  1 syslog      adm               19414 Nov 22 00:00 syslog.1
-rw-r-----  1 syslog      adm                7848 Nov 21 00:00 syslog.2.gz
-rw-r-----  1 syslog      adm               10919 Nov 20 00:00 syslog.3.gz
drwxr-xr-x  2 root        root               4096 Aug  9 14:08 sysstat
-rw-rw-r--  1 root        utmp              46848 Nov 22 03:28 wtmp

current documentation 表示如下:

Logging By default, Odoo displays all logging of level info except for workflow logging (warning only), and log output is sent to stdout. Various options are available to redirect logging to other destinations and to customize the amount of logging output.

您可以通过使用以下参数启动 Odoo 或在 Odoo 的配置文件中定义此参数来更改它。

--logfile <file>

sends logging output to the specified file instead of stdout. On Unix, the file can be managed by external log rotation programs and will automatically be reopened when replaced