Skip to content

pfg-matt/PythonLoggingExamples

 
 

Repository files navigation

My Python Logging Reminders

These examples are just reminders/demonstrations to help me get started on python scripts.

Approaches

  • The standard python logging module: trylogging/LogTestLogging.py
    Usage:
    from LogTestLogging import init_logging
    logger = init_logging()
    logger.info('info testing message')
  • The loguru module -- because it was so easy to configure: tryloguru/LogTestLoGuru.py
    Usage:
    from LogTestLoGuru import init_logging
    logger = init_logging()
    logger.info('info testing message')
  • The next...

Install

None. These are not modules, just little code reminders.
That said, tryloguru/LogTestLoGuru.py requires pip3 install loguru --user.

Explore later

Try 'minilog' a minimalistic logging wrapper for Python.
https://github.com/jacebrowning/minilog

Try 'Python Quick Logging | QLogging', colored Python logging based on Python the logging package.
https://github.com/sinkingtitanic/qlogging

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%