Skip to main content

PyPI version Build Status Coverage Status

Plogger

Plogger - a simple high level logger wrapper to log into console/file with different level. Used built-in logger module.

Installation

For most users, the recommended method to install is via pip:

pip install plogger

Import and usage

from plogger import logger

log = logger('NAME')
log.info('Test message')
import plogger

log = plogger.logger('NAME')
log.info('Log it as INFO')

Result

2022-10-10 18:17:46 | INFO      | NAME                 26 | <module> | Log it as INFO

Usage

  • As standalone logger function:
import plogger

logger = plogger.logger('NAME', level=10)

logger.info('Test message')
logger.error('Test message')
logger.warning('Test message')
logger.debug('Test message')
2022-10-10 18:18:44 | INFO      | NAME                 27 | <module> | Test message
2022-10-10 18:18:44 | ERROR     | NAME                 28 | <module> | Test message
2022-10-10 18:18:44 | WARNING   | NAME                 29 | <module> | Test message
2022-10-10 18:18:44 | DEBUG     | NAME                 30 | <module> | Test message

Changelog

1.0.8 (26.05.2022)
  • time format changed. microseconds added (2023-05-26 18:24:28.389)
  • class obsolete
1.0.7 (10.10.2022)
  • Method/function name added into log
1.0.6 (16.04.2022)
  • Enable/disable logging fixed
1.0.5.post0 (4.04.2022)
  • minor changes in log entry format
1.0.5 (4.04.2022)
  • Console log will be colorized.
  • use_color=True param added
  • Line number added to the log
1.0.4 (28.03.2022)
  • added log level selection with the "level" param
  • log level entry aligned
1.0.3 (29.01.2022)

Fixed entries duplicating. Added handlers cleaning

1.0.2 (25.01.2022)

console_output=sys.stderr by default

1.0.1 (10.01.2022)

Added console_output=sys.stdout param

1.0.0 (26.01.2020)

Added logger() function

Metadata

Release files for plogger 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plogger 1.0.8
File Size Uploaded Provenance Actions
plogger-1.0.8.tar.gz 4.7 kB Without provenance Details for plogger-1.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plogger 1.0.8
File Interpreter ABI Platform Actions
plogger-1.0.8-py3-none-any.whl Python 3 none any Details for plogger-1.0.8-py3-none-any.whl

Total release size: 9.5 kB

Release files / plogger-1.0.8.tar.gz

Download URL plogger-1.0.8.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4be9521a47d16a44361dfb0231f10d548c5b80c6a682152c614e5c642eeac2f5
BLAKE2b-256 checksum
How to use checksums
d66f49b86d68d0a220e979c82bc0fa7c070d209db13795a0348d31fbe3803f57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / plogger-1.0.8-py3-none-any.whl

Download URL plogger-1.0.8-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1b20016ea457ad63485b8555dd7b762c04d7600b61586e9f5aa2ff14f9006d1
BLAKE2b-256 checksum
How to use checksums
5b31dec56715838891bf575c4b863aef94279d07672cdef046c2725f498ed1e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Security for plogger 1.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page