{"id":20761718,"url":"https://github.com/skeptycal/auto_loguru","last_synced_at":"2025-10-23T17:38:54.359Z","repository":{"id":57412969,"uuid":"282055291","full_name":"skeptycal/auto_loguru","owner":"skeptycal","description":"Fancy defaults for the awesome loguru logs! ","archived":false,"fork":false,"pushed_at":"2020-08-27T01:18:33.000Z","size":460,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-18T19:21:32.876Z","etag":null,"topics":["log","logger","logging","loguru","python"],"latest_commit_sha":null,"homepage":"http://skeptycal.github.com/auto_loguru","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skeptycal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null},"funding":{"github":"skeptycal","patreon":"skeptycal","open_collective":null,"ko_fi":null,"tidelift":"skeptycal","community_bridge":null,"liberapay":null,"issuehunt":"skeptycal","otechie":null,"custom":null}},"created_at":"2020-07-23T21:05:33.000Z","updated_at":"2020-08-26T03:31:00.000Z","dependencies_parsed_at":"2022-08-29T15:33:48.431Z","dependency_job_id":null,"html_url":"https://github.com/skeptycal/auto_loguru","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skeptycal%2Fauto_loguru","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skeptycal%2Fauto_loguru/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skeptycal%2Fauto_loguru/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skeptycal%2Fauto_loguru/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skeptycal","download_url":"https://codeload.github.com/skeptycal/auto_loguru/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243076616,"owners_count":20232440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["log","logger","logging","loguru","python"],"created_at":"2024-11-17T10:25:31.556Z","updated_at":"2025-10-23T17:38:54.276Z","avatar_url":"https://github.com/skeptycal.png","language":"Python","funding_links":["https://github.com/sponsors/skeptycal","https://patreon.com/skeptycal","https://tidelift.com/funding/github/skeptycal","https://issuehunt.io/r/skeptycal"],"categories":[],"sub_categories":[],"readme":"\u003cp style=\"float: right;\"\u003e\n    \u003cimg alt=\"Skeptycal logo\" width=100 src=\"https://avatars0.githubusercontent.com/u/26148512?s=460\u0026u=351b13d46c1b95745bad1a8efab23abd866c5a1a\u0026v=4\"\u003e\n\u003c/p\u003e\n\n# AutoSysLoguru\n\n### Fancy defaults for the awesome [Loguru][loguru] logger by [Delgan][delgan]!\n\n## Install:\n\n```sh\npip install autosysloguru\n```\n\n## Usage\n\nThe simplest thing ever invented for logging:\n\n```py\nfrom autosysloguru import logger\nlogger.info('This is a message!')\n```\n\n## _That's it! Nothing else! It just works._\n\n---\n\n## Options:\n\nIf you want any of these defaults, you only have to set it up once. Config files can easily be copied and pasted.\n\n-   ### Set environment variables (e.g. in .bashprofile, .profile, or .zshrc):\n\n    ```sh\n    LOGURU_LEVEL=TRACE\n    LOGURU_CONFIG_FILENAME=~/path/to/some_file.py\n    ```\n\n-   ### Use a configuration section in pyproject.toml\n\n    ```toml\n    [autosysloguru]\n    dev_level = \"DEBUG\"\n    dev_handlers = [\n        { sink = \"sys.stdout\", colorize = \"True\", format = \"\u003cgreen\u003e{time}\u003c/green\u003e \u003clevel\u003e{message}\u003c/level\u003e\" },\n        { sink = \"output.json\", serialize = \"True\" },\n        # Set 'False' to not leak sensitive data in production\n        { sink = \"output.log\", backtrace = \"True\", diagnose = \"True\", rotation = \"500 MB\" }\n    ]\n    prod_level = \"SUCCESS\"\n    prod_handlers = [\n        { sink = \"sys.stdout\", colorize = \"True\", format = \"\u003cgreen\u003e{time}\u003c/green\u003e \u003clevel\u003e{message}\u003c/level\u003e\" },\n        { sink = \"output.log\", rotation = \"500 MB\", retention = \"10 days\" }\n    ]\n    ```\n\n-   ### Use a custom python configuration script\n\n    ```py\n    dev_level: str = 'DEBUG'\n    prod_level: str = 'SUCCESS'\n\n    dev_handlers: List = [\n        {\"sink\": sys.stdout, \"colorize\": True, \"format\": \"\u003cgreen\u003e{time}\u003c/green\u003e \u003clevel\u003e{message}\u003c/level\u003e\"},\n        {\"sink\": \"output.json\", \"serialize\": True},\n        # Set 'False' to not leak sensitive data in prod\n        {\"sink\": \"output.log\", \"backtrace\": True, \"diagnose\": True, \"rotation\": \"500 MB\"}\n    ]\n\n    prod_handlers: List = [\n        {\"sink\": sys.stdout, \"colorize\": True, \"format\": \"\u003cgreen\u003e{time}\u003c/green\u003e \u003clevel\u003e{message}\u003c/level\u003e\"},\n        {\"sink\": \"output.log\", \"rotation\": \"500 MB\", \"retention\": \"10 days\"}\n    ]\n\n    # load the configuration from AutoSysLoguru\n\n    logger.config()\n    ```\n\n---\n\n\u003e ## Part of the [AutoSys][1] package\n\n\u003e _System utilities for Python on macOS._\n\n\u003e [![macOS Version](https://img.shields.io/badge/macOS-10.16%20Big%20Sur-orange?logo=apple)](https://www.apple.com) [![GitHub Pipenv locked Python version](https://img.shields.io/badge/Python-3.8-yellow?color=3776AB\u0026logo=python\u0026logoColor=yellow)](https://www.python.org/)\n\n\u003e _Copyright (c) 2018 [Michael Treanor][2]_\n\n\u003e [![Twitter Follow](https://img.shields.io/twitter/follow/skeptycal.svg?style=social)][link_twitter] [![GitHub followers](https://img.shields.io/github/followers/skeptycal.svg?label=GitHub\u0026style=social)][link_github]\n\n\u003e _AutoSys is licensed under the [MIT License][3]_\n\n\u003e [![License](https://img.shields.io/badge/License-MIT-darkblue)](https://skeptycal.mit-license.org/1976/)\n\n## Contributions Welcome!\n\n[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?logo=prettier)](https://github.com/prettier/prettier)\n\n**Please feel free to offer suggestions and changes** (contribution instructions below). I have been coding for many years, but mostly as a side activity ... as a tool to assist me in other endeavors ... so I have not had the 'hard time' invested of constant coding that many of you have.\n\n\u003e Below is information from the original project repo.\n\n---\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"#readme\"\u003e\n        \u003cimg alt=\"Loguru logo\" src=\"https://raw.githubusercontent.com/Delgan/loguru/master/docs/_static/img/logo.png\"\u003e\n        \u003c!-- Logo credits: Sambeet from Pixaday --\u003e\n        \u003c!-- Logo fonts: Comfortaa + Raleway --\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://pypi.python.org/pypi/loguru\"\u003e\u003cimg alt=\"Pypi version\" src=\"https://img.shields.io/pypi/v/loguru.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.python.org/pypi/loguru\"\u003e\u003cimg alt=\"Python versions\" src=\"https://img.shields.io/badge/python-3.5%2B%20%7C%20PyPy-blue.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://loguru.readthedocs.io/en/stable/index.html\"\u003e\u003cimg alt=\"Documentation\" src=\"https://img.shields.io/readthedocs/loguru.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://travis-ci.com/Delgan/loguru\"\u003e\u003cimg alt=\"Build status\" src=\"https://img.shields.io/travis/Delgan/loguru/master.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://codecov.io/gh/delgan/loguru/branch/master\"\u003e\u003cimg alt=\"Coverage\" src=\"https://img.shields.io/codecov/c/github/delgan/loguru/master.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.codacy.com/app/delgan-py/loguru/dashboard\"\u003e\u003cimg alt=\"Code quality\" src=\"https://img.shields.io/codacy/grade/4d97edb1bb734a0d9a684a700a84f555.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/Delgan/loguru/blob/master/LICENSE\"\u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/delgan/loguru.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"#readme\"\u003e\n        \u003cimg alt=\"Loguru logo\" src=\"https://raw.githubusercontent.com/Delgan/loguru/master/docs/_static/img/demo.gif\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n**Loguru** is a library which aims to bring enjoyable logging in Python.\n\nDid you ever feel lazy about configuring a logger and used `print()`\ninstead?... I did, yet logging is fundamental to every application and\neases the process of debugging. Using **Loguru** you have no excuse not\nto use logging from the start.\n\nAlso, this library is intended to make Python logging less painful by\nadding a bunch of useful functionalities that solve caveats of the\nstandard loggers. Using logs in your application should be an\nautomatism, **Loguru** tries to make it both pleasant and powerful.\n\n# Features\n\n-   [Entirely ready out of the box without boilerplate][ready]\n-   [No Handler, no Formatter, no Filter: one function to rule them all][ready]\n-   [Easier file logging with rotation / retention / compression][ready]\n-   [Modern string formatting using braces style][ready]\n-   [Exceptions catching within threads or main][ready]\n-   [Pretty logging with colors][ready]\n-   [Asynchronous, Thread-safe, Multiprocess-safe][ready]\n-   [Fully descriptive exceptions][ready]\n-   [Structured logging as needed][ready]\n-   [Lazy evaluation of expensive functions][ready]\n-   [Customizable levels][ready]\n-   [Better datetime handling][ready]\n-   [Suitable for scripts and libraries][ready]\n-   [Entirely compatible with standard logging][ready]\n\n[ready]: ()\n[delgan]: (https://github.com/Delgan)\n[loguru]: (https://loguru.readthedocs.io/en/stable/overview.html)\n[1]: https://www.github.com/skeptycal/autosys\n[2]: https://www.twitter.com/skeptycal\n[3]: https://opensource.org/licenses/MIT\n[link_netlify]: (https://app.netlify.com/sites/mystifying-keller-ab5658/deploys)\n[link_travis]: (https://travis-ci.com/skeptycal/autosys)\n[link_twitter]: (https://www.twitter.com/skeptycal)\n[link_github]: (https://www.github.com/skeptycal)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskeptycal%2Fauto_loguru","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskeptycal%2Fauto_loguru","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskeptycal%2Fauto_loguru/lists"}