Skip to content

DiamondLightSource/python-logging-configuration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-logging-configuration

Best practice logging configuration example.

This is a simple package, demonstrating a good practice for doing logging in python.

The logconfig.py module offers a default configuration and convenience functions and can be dropped directly into any python application.

Demonstrated use:

  • logconfig.py - copy this into your project and call logconfig.setup_logging() from the main module or main() function.
  • myclasses.py - Logging in a library using loggers named by module.class.
  • demoapp.py - Logging and log configuration in an application.

About

Best practice logging configuration example

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages