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:30:07 INFO ] this is info
[19:30:07 WARNI] this is warning
[19:30:07 ERROR] this is error
[19:30:07 INFO ] this is info 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.15.zip (6.7 kB view details)

Uploaded Source

File details

Details for the file quickstartlog-0.1.15.zip.

File metadata

  • Download URL: quickstartlog-0.1.15.zip
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for quickstartlog-0.1.15.zip
Algorithm Hash digest
SHA256 da54a1f3979838cc6e97d1b68b55f960cb4ee3cef7034a3af5ba14e04cbcd48a
MD5 87406734024be545a4266d47d410d033
BLAKE2b-256 a94dc2a1a213f41c661f015f8be73eccb1aa0a040c27ec0515daeefedcf07572

See more details on using hashes here.

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