Skip to main content

Simple Log Factory

Project description

Simple log factory

This package is a wrapper for a simple log factory.

Usage

Creates a logger that will write to console, with level set to DEBUG.

from simple_log_factory import log_factory

logger = log_factory("my_log1")

Creates a logger that will write to console and to file, with level set to DEBUG. The file log will rotate daily, with timestamp added.

from simple_log_factory import log_factory

logger = log_factory("my_log1", log_file="./my_log_dump.log")

Creates a logger that will write to console and to file, with level set to DEBUG. This log file will be unique.

from simple_log_factory import log_factory

logger = log_factory("my_log1", log_file="./my_log_dump.log", rotate_file_by_day=False)

Creates a logger that will write to console, with level set to DEBUG. This type of logger (console) will be unique. (That's a workaround to log entries duplicated when more than one logger is configured to the same output)

from simple_log_factory import log_factory

logger = log_factory("my_log1", unique_handler_types=True)

Notes

This is a very early stage project, just a few functionalities. If you find any bugs, please contact me (or feel free to open an issue on Github).

Github Project: https://github.com/brenordv/log-factory-package

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

simple_log_factory-0.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

simple_log_factory-0.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_log_factory-0.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

File hashes

Hashes for simple_log_factory-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a8421b75207febcbb2a8bd5276a9a40199f77024c358683d9baeab879416e2ba
MD5 d6bd74ae571d9475edc6dfc09e19e442
BLAKE2b-256 f265fb73af1f049544d6273b369151885e4fe8cc747c42ab59b7c1c5b4aa59e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_log_factory-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

File hashes

Hashes for simple_log_factory-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 28e29fbd8dec3b8d120f6acca2f90f3ecadc2b19e5dab575eb51db54f02e28ef
MD5 d48bad09c93960e69b95ddcb009f4758
BLAKE2b-256 1f5079068aaf50b927bf13398cb3f25998dcdc62abcaf270ec8a733a15e053a9

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