Skip to main content

Aerialog

A simple, yet effective logger built in Python.

Features

  • Easily log to terminal or file
  • Coloured coded (only within terminal)
  • Log to file later on, and remove it
  • Lightweight, only needing one extra dependency
  • Load Log Level through .env or set it through the class

Using Aerialog

  1. Run python3 -m venv env and then activate the environment through source env/bin/activate (may differ on Windows)
  2. Install the dependency using your preferred method pip install aerialog
  3. Import the dependency into your code import aerialog.logger import Logger
  4. Initalise the class and freely use it log = Logger()

You may also use .env files and directly set the log_level through that too

#FATAL, ERROR, WARN, INFO, DEBUG, SILLY
# If not any of those above, it will default to DEBUG
# If it's not called LOG_LEVEL it will also default to DEBUG
LOG_LEVEL=DEBUG

Example

from aerialog import Logger

log = Logger()

def main():
    log.info("This is a really interesting info message!", "Main")
    log.error("Oh no! an error happened here", "Error")


def file_setup():
    log.set_file("awesome-project.log")
    log.info("This now gets logged to the file!", "File")
    log.remove_file() # It will now log back to the terminal

Licence

This project uses the following license: PYTHON PACKAGING AUTHORITY.

Metadata

Release files for aerialog 0.0.3

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

Source distribution (sdist)

Source distribution for aerialog 0.0.3
File Size Uploaded Provenance
aerialog-0.0.3.tar.gz 4.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 9.6 kB

Release files / aerialog-0.0.3.tar.gz

Download URL aerialog-0.0.3.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bb62498d58d295644608db165c2e93220eb82cf347c82df222cd2d8f2345cea4
BLAKE2b-256 checksum
How to use checksums
7216781fda707aa99e058c70416121e2914c17c9e3999088515bb3040845e4ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / aerialog-0.0.3-py3-none-any.whl

Download URL aerialog-0.0.3-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0ed1af1df529d5d0c1330478aa28a6776355280e08d4c854ff15827c88c11ca
BLAKE2b-256 checksum
How to use checksums
10f5bedf2044eb533730f75bcb21e8307369552be9bc503f2448e5dad1c61d33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Security for aerialog 0.0.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

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