Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 561 Bytes

File metadata and controls

24 lines (16 loc) · 561 Bytes

How to Use Loguru for Simpler Python Logging

This repository contains code related to the Real Python tutorial How to Use Loguru for Simpler Python Logging.

Setup

You should first create and activate a virtual environment:

$ python -m venv venv/
$ source venv/bin/activate

Install the pinned dependencies from requirements.txt:

(venv) $ python -m pip install -r requirements.txt

Then you can execute the provided Python scripts, for example:

(venv) $ python basic_logging.py