Skip to content

SebastiaanBij/log.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

log.py

Python Version Shield PyPi Downloads Shield License Shield

📖 About:

A basic logging library for Python with the capability to:

  • save to files.
  • have custom formats.
  • have custom levels.
  • be used instantiated.
  • be used non-instantiated.

📝 Basic Usage:

(For more advanced uses, please refer to the given examples or the documentation.)

Instantiated:

  • Code:
from logpy import Logger
from logpy.log import Levels

logger = Logger()
logger.log("Hello World!")
logger.log("Oh no, something went wrong!", Levels.error)
  • Terminal:
    img.png

Non-instantiated:

  • Code:
from logpy import Logger
from logpy.log import Levels

Logger.slog("Hello World!")
Logger.slog("Oh no, something went wrong!", Levels.error)
  • Terminal:
    img.png

🔧 Examples:

Click me!

📚 Documentation:

Click me!

❗ Requirements: