Skip to main content

Provide several commonly used logger.

Project description

loggerFactory include some commonly used logger. You can create a super easy to use logger in minimal code.

Example:

import loggerFactory

logger = loggerFactory.StreamOnlyLogger()
logger.info("Some thing wrong!")

If you are using default log format %(asctime)s; %(levelname)-8s; %(message)s, I provide a logfilter can help you search log info.

Example:

from loggerFactory.logfilter import find

result = find("log.txt", level="debug", message="ValueError",
        time_lower=None, time_upper=None, case_sensitive=False)
result.dump("result.txt")
print(result)

Quick links:

Install

loggerFactory is released on PyPI, so all you need is:

$ pip install loggerFactory

To upgrade to latest version:

$ pip install --upgrade loggerFactory

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

loggerFactory-0.0.2.zip (15.6 kB view details)

Uploaded Source

File details

Details for the file loggerFactory-0.0.2.zip.

File metadata

  • Download URL: loggerFactory-0.0.2.zip
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for loggerFactory-0.0.2.zip
Algorithm Hash digest
SHA256 31f2518d44934d879fb2054402310707e238dfe9dcc0f8c2becda55f63526919
MD5 71361c04d140fe722d1352fc031c4f74
BLAKE2b-256 85b8d6a824c273d7f057c5b08a7a57006ba94274586a1d8dcea26a700f6c300a

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