Catalog PyPI
Back to packageRELEASE DETAILS

0.0.3

PyPI

aerialog

A simple logger for python, but with colours!

Published20 Oct 2024
Direct dependencies1
Transitive dependenciesNot calculated

README

Version 0.0.3 documentation

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
python-dotenv
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
python-dotenvruntime

Distribution files

2 collected
aerialog-0.0.3-py3-none-any.whl

bdist_wheel · 4.78 KB · Python py3

Source file
aerialog-0.0.3.tar.gz

sdist · 4.55 KB · Python source

Source file

Repository

PENDING
devtomos/aerialog

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:28 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:22d0bbc59f15ef070a6f739ccddff27345a8055a1ba28a128eb34d63289570c6

Other collected versions

View all collected versions →