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-0.0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

rflogger-0.0.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rflogger-0.0.1.tar.gz
Algorithm Hash digest
SHA256 19f00c7a03f6befd629b03304737a46560943bfbbf6f494a92434f21ccd41709
MD5 d71656ce48a600bc20967ab1d9090e18
BLAKE2b-256 d09c08c980ab59a1156877963aa06432bd5bd198bb2e99a0205886ea0a78d08b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rflogger-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for rflogger-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 815ebfb1c4ef0c317fbdb82a89babc6e9b86fdbae95b2a51dc2cb069d46404c3
MD5 f99c6047f3c7971ffdc8e9eda2c9e78e
BLAKE2b-256 7ed0582de0c988d5640e814a4cea2ed0d26ea1199754770273c64c8444d9a5ad

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