Loghandler
This library can handle colored log-output and write directly into a logfile.
#!/usr/bin/env python3
from logbuddy import logbuddy
log = logbuddy.log()
At the moment there are a few loglevels defined by default.
log.Pass("I am a pass-message")
log.Warn("I am a warning-message")
log.Error("I am an error-message")
log.Debug("I am a debug-message")
log.Info("I am an info-message")
log.Info("I am an info-message")
log.setInfo("\x1b[1;36m")
log.Info("And now I have a different color")
log.setColor(False)
log.setLogfile("somelogfile")
log.setLogfile("somelogfile")
log.setLogfileDate(True)