{"id":24689,"library":"tee-output","title":"tee-output","description":"A utility to tee standard output/standard error from the current process into a logfile while preserving terminal semantics (e.g., breakpoint() works). Current version 0.4.16. Stable release cadence.","status":"active","version":"0.4.16","language":"python","source_language":"en","source_url":"https://github.com/leogregianin/tee-output","tags":["logging","tee","stdout","stderr","output-redirection"],"install":[{"cmd":"pip install tee-output","lang":"bash","label":"Install"}],"dependencies":[],"imports":[{"wrong":"from tee_output import TeeOutput","symbol":"Tee","correct":"from tee_output import Tee"}],"quickstart":{"code":"import logging\nfrom tee_output import TeeOutput\n\nlogging.basicConfig(stream=open('app.log', 'w'), level=logging.INFO)\ntee = TeeOutput('app.log')\ntee.start()\n\nprint('Hello, tee!')\nlogging.info('This goes to both console and file.')\ntee.stop()","lang":"python","description":"Basic example: tee stdout/stderr to a file while preserving terminal interaction."},"warnings":[{"fix":"Ensure `tee.start()` is called at the very beginning of the script, before any print or logging.","message":"Call `start()` before output is generated; otherwise output before start is not captured.","severity":"gotcha","affected_versions":"all"},{"fix":"Always call `tee.stop()` after teeing is done, or use it as a context manager.","message":"Do not forget to call `stop()` to restore original stdout/stderr; otherwise residual buffering may occur.","severity":"gotcha","affected_versions":"all"},{"fix":"Use `logging.getLogger().setLevel(logging.TRACE)` or define custom level via `logging.addLevelName()`.","message":"The `add_logging_level` function is deprecated in favor of standard logging.setLevel.","severity":"deprecated","affected_versions":">=0.4.0"}],"env_vars":null,"search_vec":"'0.4.16':27 'breakpoint':23 'cadenc':30 'current':13,25 'e.g':22 'error':10 'log':31 'logfil':17 'output':3,36 'output-redirect':35 'output/standard':9 'preserv':19 'process':14 'redirect':37 'releas':29 'semant':21 'stabl':28 'standard':8 'stderr':34 'stdout':33 'tee':2,7,32 'tee-output':1 'termin':20 'util':5 'version':26 'work':24","created_at":"2026-05-01T08:14:25.019121+00:00","updated_at":"2026-05-01T08:14:25.019121+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.4.16","cli_name":"tee-output","cli_version":"sh: 1: tee-output: not found","type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/tee-output/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","observability"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}