We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d89fd30 + 88d0808 commit 1962d6fCopy full SHA for 1962d6f
1 file changed
modimporter.py
@@ -18,7 +18,13 @@
18
import xml.etree.ElementTree as xml
19
20
# Logging configuration
21
-logging.basicConfig(format='%(message)s')
+logging.basicConfig(
22
+ format='%(message)s',
23
+ handlers=[
24
+ logging.FileHandler("modimporter.log.txt", mode='w'),
25
+ logging.StreamHandler(),
26
+ ],
27
+)
28
LOGGER = logging.getLogger('modimporter')
29
LOGGER.setLevel(logging.INFO)
30
@@ -49,8 +55,6 @@
49
55
50
56
game_aliases = {"Resources":"Hades"} #alias for temporary mac support
51
57
52
-logging.basicConfig(filename="modimporter.log.txt",filemode='w')
53
-
54
58
modsdir = "Mods"
59
modsrel = ".."
60
gamerel = ".."
0 commit comments