SimplePyLogger
Simple Python Logger package to easily manage custom loggers in Python projects.
Installation
Because the package is hosted on PyPi, the installation process is quite simple:
Notice that the package name has a 3 in place of an E, this is due to the availability of names in PyPi.
pip install simplepylogg3r
Upgrade to latest version
pip install simplepylogg3r -U
Usage
Currently, the package supports 3 different loggers:
- Console Logger
- File Logger
IMPORTANT NOTE: Every logger must be configured before using it, this is done by calling the configure method of the logger. Once you have configured a logger, the configuration gets saved and everytime you use the logger again, it uses this initial configuration.
All logger configuration methods are static, so you can call them directly from the class. They also have all necessary parameters with default values, allowing you to use them without any configuration or customizing whatever you want.
Console Logger
from splogger.loggers import ConsoleLogger
ConsoleLogger.configure('logger_name') # Logger configuration
ConsoleLogger.debug('Debug Message')
ConsoleLogger.info('Info Message')
ConsoleLogger.warning('Warning Message')
ConsoleLogger.error('Error Message')
ConsoleLogger.critical('Critical Message')
File Logger
from splogger.loggers import FileLogger
FileLogger.configure('logger_name', filename='example.log') # Logger configuration
FileLogger.debug('Debug Message')
FileLogger.info('Info Message')
FileLogger.warning('Warning Message')
FileLogger.error('Error Message')
FileLogger.critical('Critical Message')
To-Do List
- Add README docs.
- Generate wiki docs.
- Add Rotating File Logger (time).
- Add Rotating File Logger (size).
- Implement unit tests.
- Run unit tests on CI.
License
Apache License 2.0
Metadata
Release files for simplepylogg3r 1.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simplepylogg3r-1.5.1.tar.gz | 7.5 kB | Without provenance | Details for simplepylogg3r-1.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simplepylogg3r-1.5.1-py3-none-any.whl | Python 3 | none | any | Details for simplepylogg3r-1.5.1-py3-none-any.whl |
Total release size: 15.3 kB
Release files / simplepylogg3r-1.5.1.tar.gz
| Download URL | simplepylogg3r-1.5.1.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
304a370ab75d556137f2dd528cc0cd5da709e604a7c77d212c324f9234258635
|
|
BLAKE2b-256 checksum How to use checksums |
39c7e226a150cf939d140c808411d9828584f6e33f014776a4e5be8fb21b4f4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Release files / simplepylogg3r-1.5.1-py3-none-any.whl
| Download URL | simplepylogg3r-1.5.1-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa281d009d3f751a02d42d18c8fb87ae748d578b0d08168a35fe6fed6b888efa
|
|
BLAKE2b-256 checksum How to use checksums |
b5b3c3c583133fa24a90e8152fbc889b1c534cf592bef08bd88f199d346768ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Security for simplepylogg3r 1.5.1
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.