Skip to main content

Add basic log functionality.

Project description

logHandler

Project description

logHander is a simple package to create log. I copy paste same file in all of my project. I decided to create thid as a package and simply import it. Currently limited to basic functionality but plans to upgrade it in future.

Tests

Features

  • Simple add basic log functionality.
  • logs to console.

Installation

pip install logHander

Ussage

from logHandler import Logger
Logger('path to log folder', 'log name', [optional] log_level)

# somewhere in the package
import logging
log = logging.getLogger('log name')
log.info("Hello There")

Development

To install logHandler along with tools for developnment and testing run following command.

pip install -e .[dev]

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

my-log-handler-0.1.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

my_log_handler-0.1.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file my-log-handler-0.1.0.tar.gz.

File metadata

  • Download URL: my-log-handler-0.1.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for my-log-handler-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5a26bce5c0f1b4842e813ff1ab486fd998e7ef04c11683f80730319ef30869b2
MD5 053562a4d9bb340de73705407ba36865
BLAKE2b-256 a2944700c5e98cfa4d04faca306e1cef58e3547b4ffca4c9db96a83ff91be868

See more details on using hashes here.

File details

Details for the file my_log_handler-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for my_log_handler-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51a17f9d7a15c21e71c7a7c257c220a9ec588f40020361f8c88c2e4b02298052
MD5 ea2ed10f6d6526286f48a4d6abce90b2
BLAKE2b-256 87fccaa24e2b00a64b1aff9cb438353404e70cb87354abf5f2af0ff0e2769bf6

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