New submission from Thomas Heller <thel...@ctypes.org>: I want the Python executable to have command line flags which allow simple configuration of the logging module. Use cases are to run applications/scripts (which use libraries that use logging calls) with different logging output without having to edit (ugly) logging config files.
The attached patch demonstrates the idea; it allows to run 'python -l <options> ...' and passes <options> to a new function logging._parse_python_options(<options>). ---------- components: Interpreter Core, Library (Lib) files: logging.patch keywords: patch messages: 92932 nosy: theller severity: normal status: open title: Add Python command line flags to configure logging type: feature request Added file: http://bugs.python.org/file14941/logging.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6958> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com