forked from Supporterino/IISLogAnalyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
29 lines (23 loc) · 783 Bytes
/
main.py
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
from time import time
from lib.analyzer import Analyzer
from lib.helpers import Helpers
from lib.writer import Writer
from lib.grapher import Grapher
from lib.reporter import Reporter
ENCODING = "latin-1"
FILEFORMAT = ".log"
if __name__ == '__main__':
print("Running Log Auswertung")
start = time()
helpers = Helpers(ENCODING, FILEFORMAT)
helpers.create_directorys()
analyzer = Analyzer(helpers)
analyzer.run()
grapher = Grapher(ENCODING, helpers)
grapher.run()
csv_writer = Writer(ENCODING, helpers)
csv_writer.run_all()
reporter = Reporter()
reporter.write_html_doc()
end = time() - start
print("Prozess beendet: {:02.0f}:{:02.0f}:{:02.2f}".format(end // 3600, end % 3600 // 60, end % 60))