aboutsummaryrefslogtreecommitdiffstats
path: root/tests/CommonLibs/LogTest.ok
blob: e1211b02272ddbb242187129fac7f6ed7561e01e (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
EMERG  testing the logger.
ALERT  testing the logger.
CRIT  testing the logger.
ERR  testing the logger.
WARNING  testing the logger.
NOTICE  testing the logger.
INFO  testing the logger.
DEBUG  testing the logger.



testing Alarms
you should see three lines:
# alarms = 4
EMERG  testing the logger.
ALERT  testing the logger.
CRIT  testing the logger.
ERR  testing the logger.
----------- generating 20 alarms ----------
ALERT 0
ALERT 1
ALERT 2
ALERT 3
ALERT 4
ALERT 5
ALERT 6
ALERT 7
ALERT 8
ALERT 9
ALERT 10
ALERT 11
ALERT 12
ALERT 13
ALERT 14
ALERT 15
ALERT 16
ALERT 17
ALERT 18
ALERT 19
you should see ten lines with the numbers 10..19:
# alarms = 20
ALERT 0
ALERT 1
ALERT 2
ALERT 3
ALERT 4
ALERT 5
ALERT 6
ALERT 7
ALERT 8
ALERT 9
ALERT 10
ALERT 11
ALERT 12
ALERT 13
ALERT 14
ALERT 15
ALERT 16
ALERT 17
ALERT 18
ALERT 19