Skip to main content

A better, simple logger for python

Project description

BetterPythonLogger

A better python logger for better logging.

Usage

from BetterPythonLogger import Logger

logger = Logger.Logger("test")

logger.debug("This is a debug message")

alt text

By default this while create a new log file in the log directory

you can add a file handler to the logger

from BetterPythonLogger import Logger

logger = Logger.Logger("test")

logger.addFileHandler("<filename>", "<logger_name> here will be test")

You can add a stream handler to the logger

from BetterPythonLogger import Logger

logger = Logger.Logger("test")

logger.addStreamHandler("<logger_name> here will be test")

You can add a logger to the logger

from BetterPythonLogger import Logger

logger = Logger.Logger("test")

logger.addLogger("<logger_name>")

This will add a stream handler and a file handler to the newly created logger

If you don't want a file handler you can say noFile=True in the constructor or in the addLogger method

If you don't use any name we will use the name used to create the class.

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

BetterPythonLogger-1.1.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

BetterPythonLogger-1.1.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file BetterPythonLogger-1.1.3.tar.gz.

File metadata

  • Download URL: BetterPythonLogger-1.1.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for BetterPythonLogger-1.1.3.tar.gz
Algorithm Hash digest
SHA256 9f4aa860eda003964d6313a2e67530526ccb62b96613f1e9401e87cf3c41913c
MD5 999c7ee356c4046ea09fe205120c8aec
BLAKE2b-256 20d2d9377c7de177aa34e3edfc283b01615accbe0271833632e92fe1351afd2e

See more details on using hashes here.

File details

Details for the file BetterPythonLogger-1.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for BetterPythonLogger-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 285e8b8724a0c8ad58dcb4e2c642413f64ec973a70b5a0b58da2cb9d6eeb1111
MD5 80566ae01e984ca9c0f95df56a130a40
BLAKE2b-256 8b81f93b12d9b5025b458c322562353b7f3be52b4fab3902adbf9e6da46640f9

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