Created
August 21, 2017 15:31
-
-
Save enthus1ast/161f6fb59281287dec12d5c8c3d8bf69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import times | |
var L = newConsoleLogger() | |
var rL = newRollingFileLogger("LOGFILE.txt", fmtStr = verboseFmtStr) #, mode = fmAppend) | |
addHandler(L) | |
addHandler(rL) | |
debug($epochTime()) | |
info($epochTime()) | |
warn($epochTime()) | |
error($epochTime()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment