I've got a configuration file saying "logfile=/var/log/odoo/odoo-server.log"
When running the Odoo server from the command line, I use this logfile via the "-c" parameter.
Additional parameters override the ones in the file, but how can I disable file logging? (and log to stdout/stderr instead)
"--logfile=None" and "--logfile=False" just creates a file named "None" and "False" respectively...
specifying a file that the Odoo user is not allowed to write to (so that it complains and falls back to standard output) seems dirty.
-----------------------------------------------------------------------------------------------------
UPDATE 09 March 2015: Sorry I can't comment on responses as I don't have enough "karma". Christoph so you have a config file that specifies a logfile and on the command line your --logfile=None disables it? Although a number of updates were made in that area - https://github.com/odoo/odoo/commits/8.0/openerp/tools/config.py - it still does not work as it should:
[ubuntu@odooci-danny-test-app] sudo: HOME=/opt/odoo /opt/odoo/odoo/openerp-server -c /etc/odoo/odoo-server.conf -u all -d MigrationTarget --logfile=None --stop-after-init
[ubuntu@odooci-danny-test-app] out: ERROR: couldn't create the logfile directory. Logging to the standard output.
-----------------------------------------------------------------------------------------------------
UPDATE 10 March 2015: This seems to be a real bug. See details in my report https://github.com/odoo/odoo/issues/3852