https://github.com/carvalhocaio/python-loguru
https://github.com/carvalhocaio/python-loguru
logging python
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/carvalhocaio/python-loguru
- Owner: carvalhocaio
- Created: 2024-05-19T16:31:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-20T01:37:50.000Z (about 2 years ago)
- Last Synced: 2025-02-05T21:01:19.101Z (over 1 year ago)
- Topics: logging, python
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Uma introdução ao registro de log com Python e Loguru
O módulo de logging do Python não é a única maneira de criar logs. Existem vários pacotes de terceiros que você também
pode usar. Um dos mais populares é o Loguru. O Loguru pretende remover toda a burocracia que você encontra com a API de
logging do Python.
Você verá que o Loguru simplifica enormemente a criação de logs em Python.
## Instalação
Antes de começar a usar o Loguru, você precisará instalá-lo. Afinal, o pacote Loguru não vem com o Python.
Felizmente, instalar o Loguru é fácil com o pip. Abra seu terminal e execute o seguinte comando:
```bash
python -m pip install loguru
```
O pip instalará o Loguru e quaisquer dependências que ele possa ter para você. Você terá um pacote funcional instalado
se não houver erros .
Referências:
- https://www.blog.pythonlibrary.org/2024/05/15/an-intro-to-logging-with-python-and-loguru/?ref=dailydev
- https://loguru.readthedocs.io/en/stable/overview.html