2024-01-03 10:27:05 -08:00
|
|
|
from simpleLog import log
|
|
|
|
import os
|
|
|
|
|
|
|
|
os.remove("logs/main.log")
|
|
|
|
#Test 1
|
|
|
|
print("Everything should look like how you want it to.\n")
|
2024-04-05 08:49:49 -07:00
|
|
|
log("Testing...", "i")
|
|
|
|
log("I should have a thread listed.", "i", "otherThread")
|
|
|
|
log("Warning...", "w")
|
|
|
|
log("I should have a thread listed.", "w", "otherThread")
|
|
|
|
log("Error!", "e")
|
|
|
|
log("I should have a thread listed.", "e", "otherThread")
|
2024-01-03 10:27:05 -08:00
|
|
|
print("\nYou should stop seeing any details!\n")
|
2024-04-05 08:49:49 -07:00
|
|
|
log("Testing...", "i", "", False)
|
|
|
|
log("I should have a thread listed.", "i", "otherThread",False)
|
|
|
|
log("Warning...", "w", "", False)
|
|
|
|
log("I should have a thread listed.", "w", "otherThread", False)
|
|
|
|
log("Error!", "e", "", False)
|
|
|
|
log("I should have a thread listed.", "e", "otherThread", False)
|
2024-01-03 10:27:05 -08:00
|
|
|
print("\nYou should not see the following in the log file!\n")
|
2024-04-05 08:49:49 -07:00
|
|
|
log("I should not appear in the log file!", "i", "", False, False)
|
|
|
|
log("I should not appear in the log file!", "i", "", True, False)
|
2024-01-03 10:27:05 -08:00
|
|
|
|
|
|
|
print("\nMake sure the log file doesn't have the above or any color codes!")
|