Skip to main content

A simple log utility for building application quickly

Project description

A simple log utility, write log into console & file(TimedRotatingFileHandler)

Examples

main.py:

import quickstartlog as qslog
qslog.debug('this is debug')
qslog.info('this is info')
qslog.warn('this is warning')
qslog.error('this is error')
qslog.info_ex(qslog.LIGHT_GREEN)('this is info with LIGHT_GREEN')
console output & ./var/log/main.log::

[19:04:46 INFO ] this is info message [19:04:46 WARNI] this is warning message [19:04:46 ERROR] this is error message [19:04:46 INFO ] this is info message with LIGHT_GREEN

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

quickstartlog-0.1.8.zip (6.3 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page