Skip to main content

No project description provided

Reason this release was yanked:

KeyError: 'use_short_name' on __init__.py line 192

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.0a1.post3.tar.gz (5.0 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.0a1.post3-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file advanced_logger-1.0.0a1.post3.tar.gz.

File metadata

  • Download URL: advanced_logger-1.0.0a1.post3.tar.gz
  • Upload date:
  • Size: 5.0 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.0a1.post3.tar.gz
Algorithm Hash digest
SHA256 22aa9b51f00f7d59fb6fee43c7f1ae278546a0a0445f17637226230abf69d785
MD5 1130b473c8fa82e77341e97cdd72e2fd
BLAKE2b-256 936c4962a4124589d58f0f0baf9b10304963ce83637a31591e7c6d87a3ac92b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for advanced_logger-1.0.0a1.post3-py3-none-any.whl
Algorithm Hash digest
SHA256 559e88fb26cbb216d4ea84f09b68e3dff2dcd6f4c45b5e57ca1df078156f28b0
MD5 f9937157b353175bc718f2d19117343b
BLAKE2b-256 18a94af944935fc473abf13039c8dbe87209ac5791359612afe2f5cfa58e3193

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