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.3.zip (15.8 kB view details)

Uploaded Source

File details

Details for the file loggerFactory-0.0.3.zip.

File metadata

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

File hashes

Hashes for loggerFactory-0.0.3.zip
Algorithm Hash digest
SHA256 a9eb1bf4b6d017dd5519174d9b8107da02743b1fe7fb726cbd5bd406d12fd020
MD5 edc315643e82ab575f6fdd0dd5051629
BLAKE2b-256 bb3ed4fb7b26d3fcfffc07af6a3599b5cfb970a7b625735334e3eb4977f0c2df

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