Skip to main content

easy log use for extra infos

Project description


pip install xlog

from logext666 import xlog

xlog.file = 'logs/%Y-%m-%d.log'
xlog.level = 'info'
xlog.format = '%(levelname)s %(name)s %(user)s %(message)s'
xlog.file = '%Y-%m-%d.html'
xlog.debug({'foo': 'bar'}, indent=2)"hello", extra={'user': 'hanzhichao'})


2019-12-09 19:30:16,419 DEBUG log None ->
  "foo": "bar"
2019-12-09 19:30:16,419 INFO log hanzhichao hello

Project details

Download files

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

Files for logz, version 0.11
Filename, size File type Python version Upload date Hashes
Filename, size logz-0.11.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

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