Skip to main content

Very lightweight yet simple rotating file loggger

Project description

Python Logger:

This script was made for logging as fast and simple as possible. Make sure you have write permission for your log file.

It's reccommended that you use an absolute route for your log file.

Multiple instances of this logger can be used (With same or different log_name)

Sample usage:

from pathlib import Path # This line is intended for using Path(), it is not required for LocalLogger
from pythonlogger.logger import LocalLogger

log = LocalLogger(str(Path(__file__).resolve().parent) + '/log.log', 'Some-logger')
log.debug('mensaje debug')
log.info('mensaje info')
log.warning('mensaje warning')
log.error('mensaje error')
log.critical('mensaje critical')

By default, it logs from WARNING to CRITICAL messages. If you want to change it, you can call log.SetLevel('debug') to log every message.

Made by Juan Ignacio De Nicola. Feel free to redistribute or modify it as you wish.

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

rflogger_jdenicola-0.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

rflogger_jdenicola-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file rflogger_jdenicola-0.0.1.tar.gz.

File metadata

  • Download URL: rflogger_jdenicola-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for rflogger_jdenicola-0.0.1.tar.gz
Algorithm Hash digest
SHA256 620f919c796c06d17886c51a5704a753b388d36e5e7ad4b96b0c05e4dae885be
MD5 42cb0a7c0f18d080c4e7ec55e59dd096
BLAKE2b-256 5391500da069233109914d0483ecc3e474f7b2ec77f414007d1ffaae4c704d39

See more details on using hashes here.

File details

Details for the file rflogger_jdenicola-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for rflogger_jdenicola-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e791e2b618d5268ddb9ad463b6cfdcfd3ed594f24d65ccc5b784bead51ebe8b
MD5 66f22f99891449712f5be17bcb148cd3
BLAKE2b-256 dfae112b009099f5c814ca8e552fc0356eeecb63ba176bc44166b7ec84fd8b39

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