26 lines
986 B
Python
26 lines
986 B
Python
|
from simpleLog import log
|
||
|
import os
|
||
|
|
||
|
os.remove("logs/main.log")
|
||
|
#Test 1
|
||
|
print("Everything should look like how you want it to.\n")
|
||
|
log("i", "Testing...")
|
||
|
log("i", "I should have a thread listed.", "otherThread")
|
||
|
log("w", "Warning...")
|
||
|
log("w", "I should have a thread listed.", "otherThread")
|
||
|
log("e", "Error!")
|
||
|
log("e", "I should have a thread listed.", "otherThread")
|
||
|
print("\nYou should stop seeing any details!\n")
|
||
|
log("i", "Testing...", "", False)
|
||
|
log("i", "I should have a thread listed.", "otherThread",False)
|
||
|
log("w", "Warning...", "", False)
|
||
|
log("w", "I should have a thread listed.", "otherThread", False)
|
||
|
log("e", "Error!", "", False)
|
||
|
log("e", "I should have a thread listed.", "otherThread", False)
|
||
|
print("\nYou should not see the following in the log file!\n")
|
||
|
log("i", "I should not appear in the log file!", "", False, False)
|
||
|
log("i", "I should not appear in the log file!", "", True, False)
|
||
|
|
||
|
print("\nMake sure the log file doesn't have the above or any color codes!")
|
||
|
|