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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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