mdmintz / pynose

pynose fixes nose to extend unittest and make testing easier
https://pypi.org/project/pynose/
GNU Lesser General Public License v2.1
11 stars 6 forks source link

Logging Optimizations #23

Closed mdmintz closed 5 months ago

mdmintz commented 5 months ago

Logging Optimizations


Add --capture-logs to capture output from all logging levels (which hides all logging output).

(Also settable with os.environ --> "NOSE_CAPTURELOGS" "1")

--

Note: To capture the output of print() statements, use the existing --capture-output option. (Also settable with os.environ --> "NOSE_CAPTURE" "1")


Add --logging-init to automatically call logging.basicConfig(level), which may be needed if you want to change the default logging level using --logging-level=LEVEL.

(Also settable with os.environ --> "NOSE_LOGINIT" "1")


mdmintz commented 5 months ago

This was resolved in 1.5.1 - https://github.com/mdmintz/pynose/releases/tag/v1.5.1