aerialog


Nameaerialog JSON
Version 0.0.3 PyPI version JSON
download
home_pageNone
SummaryA simple logger for python, but with colours!
upload_time2024-10-20 21:41:32
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Aerialog

A simple, yet effective logger built in Python.

## Features

- [x] Easily log to terminal or file
- [x] Coloured coded (only within terminal)
- [x] Log to file later on, and remove it
- [x] Lightweight, only needing one extra dependency
- [x] 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

```env

#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

```python

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](https://github.com/devtomos/aerialog/blob/main/LICENSE.md).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "aerialog",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "tomos <oerushia@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/72/16/781fda707aa99e058c70416121e2914c17c9e3999088515bb3040845e4ad/aerialog-0.0.3.tar.gz",
    "platform": null,
    "description": "# Aerialog\n\nA simple, yet effective logger built in Python.\n\n## Features\n\n- [x] Easily log to terminal or file\n- [x] Coloured coded (only within terminal)\n- [x] Log to file later on, and remove it\n- [x] Lightweight, only needing one extra dependency\n- [x] Load Log Level through .env or set it through the class\n\n## Using Aerialog\n\n1.  Run `python3 -m venv env` and then activate the environment through `source env/bin/activate` (may differ on Windows)\n2.  Install the dependency using your preferred method `pip install aerialog`\n3.  Import the dependency into your code `import aerialog.logger import Logger`\n4.  Initalise the class and freely use it `log = Logger()`\n\nYou may also use `.env` files and directly set the log_level through that too\n\n```env\n\n#FATAL, ERROR, WARN, INFO, DEBUG, SILLY\n# If not any of those above, it will default to DEBUG\n# If it's not called LOG_LEVEL it will also default to DEBUG\nLOG_LEVEL=DEBUG\n```\n\n\n## Example\n\n```python\n\nfrom aerialog import Logger\n\nlog = Logger()\n\ndef main():\n    log.info(\"This is a really interesting info message!\", \"Main\")\n    log.error(\"Oh no! an error happened here\", \"Error\")\n\n\ndef file_setup():\n    log.set_file(\"awesome-project.log\")\n    log.info(\"This now gets logged to the file!\", \"File\")\n    log.remove_file() # It will now log back to the terminal\n```\n\n## Licence\nThis project uses the following license: [PYTHON PACKAGING AUTHORITY](https://github.com/devtomos/aerialog/blob/main/LICENSE.md).\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A simple logger for python, but with colours!",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/devtomos/aerialog",
        "Issues": "https://github.com/devtomos/aerialog/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "10f5bedf2044eb533730f75bcb21e8307369552be9bc503f2448e5dad1c61d33",
                "md5": "175c7f6ffae1f5b86d74f6efdbde08dc",
                "sha256": "a0ed1af1df529d5d0c1330478aa28a6776355280e08d4c854ff15827c88c11ca"
            },
            "downloads": -1,
            "filename": "aerialog-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "175c7f6ffae1f5b86d74f6efdbde08dc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4896,
            "upload_time": "2024-10-20T21:41:31",
            "upload_time_iso_8601": "2024-10-20T21:41:31.391398Z",
            "url": "https://files.pythonhosted.org/packages/10/f5/bedf2044eb533730f75bcb21e8307369552be9bc503f2448e5dad1c61d33/aerialog-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7216781fda707aa99e058c70416121e2914c17c9e3999088515bb3040845e4ad",
                "md5": "618a2e203eec7439c4ddbdfb55752a13",
                "sha256": "bb62498d58d295644608db165c2e93220eb82cf347c82df222cd2d8f2345cea4"
            },
            "downloads": -1,
            "filename": "aerialog-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "618a2e203eec7439c4ddbdfb55752a13",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 4663,
            "upload_time": "2024-10-20T21:41:32",
            "upload_time_iso_8601": "2024-10-20T21:41:32.936517Z",
            "url": "https://files.pythonhosted.org/packages/72/16/781fda707aa99e058c70416121e2914c17c9e3999088515bb3040845e4ad/aerialog-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-20 21:41:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "devtomos",
    "github_project": "aerialog",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "aerialog"
}
        
Elapsed time: 0.46641s