Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python.announce > #2597
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Krzysztof Laskowski <aurzenligl@gmail.com> |
| Newsgroups | comp.lang.python.announce |
| Subject | pytest-logger 0.2.0 |
| Date | Mon, 14 Aug 2017 18:17:24 +0200 |
| Lines | 33 |
| Approved | python-announce-list@python.org |
| Message-ID | <mailman.42.1502810152.2689.python-announce-list@python.org> (permalink) |
| References | <4516ae18-6ad8-46ac-d212-7c880030d82f@gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de btlvcBn1LRy7mVHKapFN+gH6FR0mPUNCebTQ1LTqIIeg== |
| Return-Path | <aurzenligl@gmail.com> |
| X-Original-To | python-announce-list@python.org |
| Delivered-To | python-announce-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'url:pypi': 0.03; 'url:github': 0.05; "'''": 0.09; 'filesystem': 0.09; 'hooks': 0.09; 'logger': 0.09; 'received:192.168.0.11': 0.09; 'def': 0.13; 'api,': 0.16; 'filesystem,': 0.16; 'happily': 0.16; 'neutral': 0.16; 'pytest': 0.16; 'tmpdir': 0.16; 'way:': 0.16; 'all,': 0.21; 'filtering': 0.22; 'url:io': 0.23; 'output': 0.24; 'putting': 0.24; 'header:User-Agent:1': 0.27; "i'd": 0.27; 'example': 0.29; 'issues.': 0.29; 'message-id:@gmail.com': 0.30; 'url:python': 0.32; 'received:google.com': 0.32; 'combination': 0.33; 'allows': 0.34; 'skip:l 30': 0.35; 'url:org': 0.36; 'received:209.85': 0.37; 'structure': 0.37; 'subject:-': 0.38; 'received:io': 0.38; 'received:psf.io': 0.38; 'received:ams1.psf.io': 0.38; 'received:mail1.ams1.psf.io': 0.38; 'feedback': 0.38; 'skip:p 30': 0.38; 'received:192': 0.39; 'received:209': 0.39; 'level': 0.39; 'proto:https': 0.39; 'received:192.168': 0.39; 'to:addr:python.org': 0.40; 'test': 0.40; 'real': 0.67; 'receive': 0.70; 'levels': 0.70; 'to:addr:python-announce-list': 0.72 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=Grg+r/fv4qjzW8uPQSmifA0X43/x9NJyIWwtBLD14PA=; b=d0R+h7Zq2t66BRZxtByQtsDFg1mQ49E1vIX6DplQd7Jk73D4ZQy9ve4hLU04wFxSNB LvBxwBgiubotxLqerHB7+pkaeKoX8QsvF7Ay4IBivIwee2Bu4qLwV39RhJcPBV/zRB83 6fmv4+Ww1LjiCFgXbnrUttzYZlMsggKqpt7TBwpUpiZrzF3K3CGZuiMJxGJXrhRNYWrk xSqSvoA6Za7aVDsqk9CRsAyOHJZQ1gWEQ0jG5sckpA4/qytLet4Ep3k0QO42SE5V0kxh POQCNHg8XmQO+fdTYHG3xu2QuWN4r5c5xibU8XD1vTRjF/yESFcfC/wqpAlaJaZXS71O L5nQ== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=Grg+r/fv4qjzW8uPQSmifA0X43/x9NJyIWwtBLD14PA=; b=jE2grN/d+222gMKqGMGp+CpQZTMVJyQjShJ2t2QUznmNTJFHl8puaZcniFSZWhU5RG amc1/9NcxrcOvr8nUY5AU1RsISpHd+ABgGEqG6dI4vFAezna4y/2AMv9T5ntFBlMorCI Pl245L9tWq1FjDbSSjPJ++uwVQXIrhCMuTsqP4/cZJhh5br0N4VmqXolmoSACjCpMNfB YjBCfKzmI61WkO/7t/Xp0t7QeDa+xUgm0OQtM9WkqpOJTQykA20tswuyI9pdkeJpUY6f VhOCnvIL8VL66bL0YpPtTBiW+4f/plW8+25cU3wsSt8opqup3d1Fp7K/FFxU9+I+Xj7J ucTA== |
| X-Gm-Message-State | AHYfb5gxnjtqne9qR2RFvdciMlpl9ZNhrAVE+/6Eiv513gUFhMYqI1iS vLP3ranBkqG+9QIt |
| X-Received | by 10.25.43.132 with SMTP id r126mr8702475lfr.86.1502727446763; Mon, 14 Aug 2017 09:17:26 -0700 (PDT) |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 |
| Content-Language | en-US |
| X-Mailman-Approved-At | Tue, 15 Aug 2017 11:15:50 -0400 |
| X-BeenThere | python-announce-list@python.org |
| X-Mailman-Version | 2.1.24 |
| Precedence | list |
| List-Id | Announcement-only list for the Python programming language <python-announce-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-announce-list/> |
| List-Post | <mailto:python-announce-list@python.org> |
| List-Help | <mailto:python-announce-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <4516ae18-6ad8-46ac-d212-7c880030d82f@gmail.com> |
| Xref | csiph.com comp.lang.python.announce:2597 |
Show key headers only | View raw
Hi All,
pytest-logger is a pytest plugin putting stdlib logs to:
- tmpdir directory structure mimicking test suite structure,
- pytest terminal output in real time, as test progresses.
pypi: https://pypi.python.org/pypi/pytest-logger/0.2.0
repo: https://github.com/aurzenligl/pytest-logger
docs: http://pytest-logger.readthedocs.io
* logs to filesystem in fine-grained way: per-logger and per-testcase
* logs to terminal in real-time: allows cmdline filtering by logger and
level
* uses pytest hooks as user API, which makes plugin neutral unless
deliberately hook-configured
# conftest.py example
def pytest_logger_config(logger_config):
'''logs:
- foo.warn, bar.warn and baz.warn to filesystem,
- foo.warn, bar.error to terminal
- allows to change default --log value to any combination of
loggers and levels
'''
logger_config.add_loggers(['foo', 'bar', 'baz'],
stdout_level='warn')
logger_config.set_log_option_default('foo,bar.error')
I'd happily receive feedback and suggestions via mail or github issues.
Best Regards,
Krzysztof Laskowski
Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread
pytest-logger 0.2.0 Krzysztof Laskowski <aurzenligl@gmail.com> - 2017-08-14 18:17 +0200
csiph-web