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
Metadata
Release files for GSELogger 1.0.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 | |
|---|---|---|---|
| GSELogger-1.0.1.tar.gz | 37.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| GSELogger-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.0 kB
Release files / GSELogger-1.0.1.tar.gz
| Download URL | GSELogger-1.0.1.tar.gz |
|---|---|
| Size | 37.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69ea1bd21db888271ba8a729def1cb9c861771048dd8df4ba11eb939084a5d07
|
|
BLAKE2b-256 checksum How to use checksums |
874541efc27c49cbde34ef998356bd3d8d5371cdfd831ee9ae6222ef6749ef46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / GSELogger-1.0.1-py3-none-any.whl
| Download URL | GSELogger-1.0.1-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ea340c117352942e43be0b8d0189f648f8026b44b0f541715d9b22462ea0321
|
|
BLAKE2b-256 checksum How to use checksums |
38ff36ef18716b5aebbb1e8ac3660907a15a17edea5410b2b316ba71365e96e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|