This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Just a tiny logger. Nothing more, nothing less.

Installation

Through PyPI:

$ pip install tinylog

…or from the project root directory:

$ python setup.py install

Usage

Example usage:

# Basic usage, with console logging

>> from tinylog import Logger
>> log = Logger(console='stdout', info='~/test.log')
>> log.debug('Foo!')
2015-09-09T23:40:42.817421 [DEBUG] Foo!
>>log.info('Bar!')
2015-09-09T23:40:48.865398 [INFO] Bar!
>> log.critical('Situation critical!')
2015-09-09T23:40:58.369778 [CRITICAL] Situation critical!
>> exit()

$ cat ~/test.log
2015-09-09T23:40:48.865398 [INFO] Bar!
2015-09-09T23:40:58.369778 [CRITICAL] Situation critical!

# With separated debug and error logs, and custom format

>> from tinylog import Logger
>> log = Logger(debug='~/debug.log', error='~/error.log', fmt='{unixtimestamp}:{level}:{message}\n')
>> log.debug('Debug message')
>> log.info('Info message')
>> log.warning('Warning message')
>> log.error('Error message!')
>> log.critical('Critical error!')
>> exit()

$ cat ~/debug.log
1441867497:DEBUG:Debug message
1441867501:INFO:Info message
1441867506:WARNING:Warning message
1441867512:ERROR:Error message!
1441867531:CRITICAL:Critical error!

$ cat ~/error.log
1441867512:ERROR:Error message!
1441867531:CRITICAL:Critical error!

To disable logging, set the environment variable “NO_LOGGING”, or use a variable you pick by instanciating Logger with it, like deactivation_var=”NO_LOGGING”:

$ cat my_program.py
from tinylog import Logger
log = Logger(deactivation_var='FOOBAR', console='stdout')
log.info('foo')

$ python my_program.py
2015-09-09T23:57:50.008624 [INFO] foo

$ FOOBAR=1 python my_program.py
<empty>

Release Notes

0.1.4:Remove zip_safe
0.1.2:Fixed relative import for python3
0.1.1:Updated default deactivation_var to NO_LOGGING, but it’s configurable.
0.1.0:Released to PyPI with most features
0.0.1:Project created
Release History

Release History

0.1.4

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
tinylog-0.1.4.tar.gz (4.8 kB) Copy SHA256 Checksum SHA256 Source May 26, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting