Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 665 Bytes

File metadata and controls

35 lines (25 loc) · 665 Bytes

Project Description

Overview

This Git project demonstrates basic logging scenarios in Python. The purpose of this project is to showcase how to implement logging in Python applications.

Contents

The project includes example code that covers:

  • Basic logging setup;
  • Custom filter, formatter;
  • Logger init syntaxis;
  • Rotating log files;
  • Basic file handler with pathlib;
  • Basic logging adapter usecase.

How to Run

  1. Clone repo
   git clone https://github.com/jesusKeyboardd/basic_logging_python.git .
  1. Open main.py and uncomment any scenario
   cd basic_logging_python
   main.py
  1. run
   py main.py