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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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