Skip to main content

GamuLogger

📚 Table of Contents

🔨 Installation

The package is available in the assets of the latest release on pypi.

You can install it with pip:

pip install gamuLogger

💡 Usage

  • First you need to import the package:
    from gamuLogger import trace, debug, info, warning, error, fatal, Logger, Levels
    

note: you can also only import the members you need instead of importing all of them.

  • Then you can use the functions like this:
    info('This is an info message')
    warning('This is a warning message')
    error('This is an error message')
    

You may note that the logging function are also available as static methods in the Logger class. This allow you to have them encapsulated in a class and use them in a more object oriented way:

from gamuLogger import Logger

Logger.info('This is an info message')
Logger.warning('This is a warning message')
Logger.error('This is an error message')

⚙️ Configuration

1. Basic Configuration

You can configure the logger using methods of the Logger class. Here is an example of how you can do it:

from gamuLogger import Logger, Levels

# default target is the standard output, name is 'stdout'

Logger.set_level("stdout", Levels.INFO); # this mean yhat all logs with level higher than INFO will be ignored


Logger.set_module('my-module'); # set the module name for this file to 'my-module' (this will be displayed in the log message) (by default, no module name is set)

Logger.add_target("data.log", Levels.DEBUG) # add a new target to the logger (this will log all messages with level higher than DEBUG to the file 'data.log')

Please note that the logger can be used without any manual configuration. The default configuration is:

  • target: terminal
    • level: INFO
  • module name: None

Note that the module name is set only for the current file. If you want to set the module name for all files, you need to set it in each file.

📁 Examples

you can find examples in the example directory.

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for gamuLogger 3.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gamuLogger 3.2.6
File Size Uploaded Provenance
gamulogger-3.2.6.tar.gz 34.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gamuLogger 3.2.6
File Interpreter ABI Platform
gamulogger-3.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 76.4 kB

Release files / gamulogger-3.2.6.tar.gz

Download URL gamulogger-3.2.6.tar.gz
Size 34.6 kB
Tags Source
SHA-256 checksum
How to use checksums
56585365b25bde23ff81a10ef70bf5e851bfa282a590ba5bc4241d9ec9c10189
BLAKE2b-256 checksum
How to use checksums
7cf6ea650437f0d2fa24bb12b1ae2005713dd5575b4cb40b2c7cf13f436245ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 9, 2025.

Transparency log

Release files / gamulogger-3.2.6-py3-none-any.whl

Download URL gamulogger-3.2.6-py3-none-any.whl
Size 41.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12215b5bb00cb755cf08c8e2cfa61ba1390ed361a061e30f5ed94fab1edbdb66
BLAKE2b-256 checksum
How to use checksums
7c4b490e77ab079060e44d45672786c72e3d249a5d5b6b8627e7bc9575a36033
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 9, 2025.

Transparency log

Security for gamuLogger 3.2.6

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gamulogger-3.2.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 9, 2025.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page