Skip to main content

Tool for changing python print statements into logging module invocations. Automatically adds the appropriate imports.

Project description

use_logging
========================

Tool for changing python print statements into logging module invocations. Automatically adds the appropriate imports.

Implemented by wrapping lib2to3, hence some oddities.

Installation
------------------------

$ pip install use_logging

Example Useage
------------------------

$ use_logging -w my_project/*.py


Links
------------------------
https://docs.python.org/2/library/2to3.html



ToDo
------------------------
1. Any more tests?

1. Publish on pypi.

1. Rest of stuff in https://github.com/vitorbaptista/pyconuk_helloworld (bandit, manifest/+check)


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

use_logging-0.0.1.tar.gz (6.3 kB view hashes)

Uploaded source

Built Distribution

use_logging-0.0.1-py2-none-any.whl (9.0 kB view hashes)

Uploaded py2

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page