Skip to content

A Python logging wrapper. The basic configurations are included.

License

Notifications You must be signed in to change notification settings

henrywang/hwlogging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

HWLogging

A Python logging wrapper with some of logging settings configured.

Default logging settings

  1. Log file name and directory to store logs.

  2. Allow the log file to rollover at a predetermined size.

  3. Two log outputs:

    1. console: coding debug

    2. file: application running log collection

  4. Console log output shows logs which belongs to level DEBUG and above.

  5. File log output stores logs which belongs to level INFO and above.

How to use HWLogging

  1. Download HWLogging
git clone https://github.com/henrywang/hwlogging.git
  1. Import HWLogging
import hwlogging

if __name__ == "__main__":
    logger = hwlogging.Logger(__file__).logger
    logger.info("Working on file {0}.".format(__file__))

About

A Python logging wrapper. The basic configurations are included.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages