Skip to main content

Python logging model for any python application.

Project description

GSELogger

Tests

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

  1. Python >= 3.10

Development Requirements

  1. Python >= 3.10
  2. versioneer>=0.28
  3. flake8>=6.0.0
  4. mypy>=1.0.1
  5. pytest>=7.2.1
  6. pytest-cov>=4.0.0
  7. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

GSELogger-1.0.1.tar.gz (37.3 kB view details)

Uploaded Source

Built Distribution

GSELogger-1.0.1-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

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

Hashes for GSELogger-1.0.1.tar.gz
Algorithm Hash digest
SHA256 69ea1bd21db888271ba8a729def1cb9c861771048dd8df4ba11eb939084a5d07
MD5 cd02847a8d9a61297e1cee40a7ec2826
BLAKE2b-256 874541efc27c49cbde34ef998356bd3d8d5371cdfd831ee9ae6222ef6749ef46

See more details on using hashes here.

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

Hashes for GSELogger-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ea340c117352942e43be0b8d0189f648f8026b44b0f541715d9b22462ea0321
MD5 dc048759d3e30f0616c934784529d1f3
BLAKE2b-256 38ff36ef18716b5aebbb1e8ac3660907a15a17edea5410b2b316ba71365e96e5

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