Giter Site home page Giter Site logo

python-log-helper's Introduction

About

This python-log-helper repo is the culmination of a long standing desire to make logging easier while leveraging decorators.

Table of Contents

Business Requirements

Here are the requirements & nice to haves in relation to this project.

Must Have

Aside from being easily imported into any repo ...

  1. Provide easy way to add logging to a repo without having to recreate the settings for each project
  2. Have a decorator function that provides DEBUG entry and exit for functions
  3. Provide way to turn on / off logging to console (set level to anything other than WARNING)
  4. Provide way for choice in what logging file is saved
  5. Have some way to show start/end of logging in the file per run
  6. Have formatting show time, file name, function name, and logging level in saved logs (to start)
  7. easy way to show start and stop of log file logs for each run

Nice to Have

  1. Leverage built in functions of logger to limit the number of files chosen when starting run
  2. Flexible options for formatting (both console and file)
  3. Have way to email log file(s)
  4. Consider this when looking to move to a class

Current Status

v1] was to get everything set up and working as functions.

v2 was to migrate from functions to classes, with some fixes and improvements along the way.

v3 was fixing some of the issues found within v2 (like not having modularity).

v4 was to begin adding testing to the code, but other issues were found while fixing some of the work. Eventually bringing us to where we are now ... where for some reason the console is logging twice on import when it wasn't before. Latest as of 20240217.

Additional Resources

The following were used to build this repo:

python-log-helper's People

Contributors

prosperousheart avatar

Watchers

 avatar

python-log-helper's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.