Skip to content

PaddeCraft/Log4py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub repo size Lines of code GitHub issues

Log4py

Log4py is a simple logging package written in python. It´s very simple to use, and only consists of one class.

Installation

# Latest release
python3 -m pip install https://api.github.com/repos/PaddeCraft/Log4py/zipball

# Developement version
python3 -m pip install git+https://github.com/PaddeCraft/Log4py.git

Example

from log4py.log4py import logger

log = logger(prefix="Log4py", useColor=False, logFile="./latest.log")

log.success("successful")
log.info("information")
log.warn("warning")
log.error("exception")
[Log4py] [11:51] [SUCCSESS]  successful
[Log4py] [11:51] [INFO]      information
[Log4py] [11:51] [WARN]      warning    
[Log4py] [11:51] [ERROR]     exception