Python logging model for any python application.
Project description
GSELogger
GSELogger is a package that simplifies application logging to a file. Additional ways for logging will be added in the future (console logging, log streaming to a PyQt widget etc.)
Installation
GSELogger is tested only using Python 3.10 and higher. In some cases, lower versions are also accepted, but version 3.10 or higher is recommended for best compatibility. See the full [requirements list] for the GSELogger package.
PyPI
To install from PyPI use:
pip install gselogger
Source
To install from source first download the project from the package releases or use:
git clone https://github.com/GSECARS/GSELogger.git
Move into the project directory:
cd GSELogger
Install using pip:
pip install .
Requirements
- Python >= 3.10
Development Requirements
- Python >= 3.10
- versioneer>=0.28
- flake8>=6.0.0
- mypy>=1.0.1
- pytest>=7.2.1
- pytest-cov>=4.0.0
- tox>=4.4.6
Example usage
from gselogger import LoggerModel
logger = LoggerModel(app_name="MyApp")
logger.info(message="Information Message")
logger.warning(message="Warning Message", exception_type="Warning Exception Name")
logger.warning(message="Error Message", exception_type="Error Exception Name")
logger.warning(message="Critical Message", exception_type="Critical Exception Name")
License
GSELogger is part of the GSECARS organization and is distributed under the GNU General Public License version 3. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Christofanis Skordas - Last updated: 02-Mar-2023
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file GSELogger-1.0.1.tar.gz
.
File metadata
- Download URL: GSELogger-1.0.1.tar.gz
- Upload date:
- Size: 37.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69ea1bd21db888271ba8a729def1cb9c861771048dd8df4ba11eb939084a5d07 |
|
MD5 | cd02847a8d9a61297e1cee40a7ec2826 |
|
BLAKE2b-256 | 874541efc27c49cbde34ef998356bd3d8d5371cdfd831ee9ae6222ef6749ef46 |
File details
Details for the file GSELogger-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: GSELogger-1.0.1-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ea340c117352942e43be0b8d0189f648f8026b44b0f541715d9b22462ea0321 |
|
MD5 | dc048759d3e30f0616c934784529d1f3 |
|
BLAKE2b-256 | 38ff36ef18716b5aebbb1e8ac3660907a15a17edea5410b2b316ba71365e96e5 |