Skip to main content

No project description provided

Project description

Advanced logger

it provides colorful printing and it is be able to customize

Install

Run command: pip install advanced-logger

Try it

import logger

logger.debug("Hello")

Do something andvanced

  1. Colorful printing

Write this line before any action

import logger as log

logger = log.getLogger("test.test", colored=True)

logger.debug("Hello")
  1. Write your own handler

If you want to pipe message to standard error output, you do:

from logger.handler import FileObjectHandler
import logger as log
import sys

class StdErrHandler(FileObjectHandler):
    def __init__(self):
        super().__init__(sys.stderr)

logger = log.getLogger("test", handler=StdErrHandler())

logger.debug("test")

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

advanced_logger-1.0.0a2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

advanced_logger-1.0.0a2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file advanced_logger-1.0.0a2.tar.gz.

File metadata

  • Download URL: advanced_logger-1.0.0a2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.9

File hashes

Hashes for advanced_logger-1.0.0a2.tar.gz
Algorithm Hash digest
SHA256 0aa8abb0b14767d823185c23632ade047f445478f858b3e1a7164587f59a5618
MD5 ae1f7f0b9087184e25d3bc297ccfef94
BLAKE2b-256 8b85d067eac2728f010df675e9dd47011270486c41b59fa355c4bb9428c48e7c

See more details on using hashes here.

File details

Details for the file advanced_logger-1.0.0a2-py3-none-any.whl.

File metadata

File hashes

Hashes for advanced_logger-1.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 923d53b4f28ee6f2a0a279c66a3ba5fa75e4bbbf5e5ae2eed44edc0908032ed5
MD5 f4a2b8c4828038186d971981bc3eb6be
BLAKE2b-256 238a713c09914616572f088f6555783eb6f3c21c85ab776b6a9dc18a1e16b6b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page