OverOps - Logging GitHub - Public
 Share
The version of the browser you are using is no longer supported. Please upgrade to a supported browser.Dismiss

 
View only
 
 
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
Intro
Logging statements breakdown
2
#09510
3
Total projects (top 400k by stars)400,0001-192929
4
Total Java projects (filtered out android and arduino)
15,79720-991888
5
100-9991269
6
1000+201
7
Logging intro
8
9
Projects without logging9,510
10
Projects with logging6,287
11
12
1-19 logging statements2,929
20+ logging statements
3358
13
20-99 logging statements1,888
100+ logging statements
1470
14
100-999 logging statements1,269
1000+ logging statements
201
15
1000+201
16
17
Looking at 100 logging statements and above
Logging level scheme (100+)
18
Total1,470non jul logging922
19
java.util.logging65
20
Using only log4j2 / logback / slf4j922Both methods483
21
Using only java.util.logging65
22
Both methods483
23
24
25
26
Breaking it down, focusing on non jul logging, 100+
27
Total1313
28
29
30
trace_%info_%debug_%warn_%error_%fatal_%
31
Mean5%30%28%14%23%0%
32
Median1%25%24%11%19%0%Log levels in use
33
Average devation from mean7%17%18%9%14%1%Trace55%
34
Variance1%5%5%2%3%0%Info98%
35
# >0 / total projects55%98%94%94%96%20%Debug94%
36
Warn94%
37
Total # of statements779,236Error96%
38
Total # trace44,319Fatal20%
39
Total # info215,703
40
Total # debug242,599
41
Total # warn104,076
42
Total # error169,179
43
Total # fatal3,360
44
45
Prod (warn and above)276,615
46
Else:502,621
47
48
49
50
51
52
Average out of total logging
53
Where to logTrace5.2%
54
Production276,615Info29.7%
55
Development502,621Debug28.1%
56
Warn14%
57
Error22.6%
58
Fatal0.4%
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Loading...
 
 
 
Data Summary
No logging statements
1-19 logging statements
20-99 logging statements
100+ logging statements
100+ non pure jul
Log files suck!