-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshowcase.py
More file actions
47 lines (24 loc) · 737 Bytes
/
Copy pathshowcase.py
File metadata and controls
47 lines (24 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from log import Log
Log.Print("Hello!")
Log.Print("I don't need timestamp",current=False)
Log.Print("I'm ALONE",current=False,elapsed=False)
Log.Print("I'm red",col="r")
Log.Print("not I'm blue",bg="b")
Log.Print("Don't go next line",end="\t")
Log.Print("Yes, you could...",current=False,elapsed=False)
Log.Print("I'm level 1", level=1)
Log.SetPrintLevel(2)
Log.Print("I'm level 1, again", level=1)
Log.SetPrintLevel(0)
Log.Print("I'll be flushed! Nooo",flush=True)
Log.Print("But my hope will never die")
Log.SetMessages(False)
Log.SetPrintLevel(1)
Log.SetPrintLevel(0)
Log.SetMessages(True)
Log.SetMSPrecision(5)
Log.Print("Five")
Log.SetMSPrecision(0)
Log.Print("ZERO")
Log.SetMSPrecision(3)
Log.Print("Three!")