We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 135f655 commit de961bbCopy full SHA for de961bb
.gitignore
@@ -1,3 +1,4 @@
1
__pycache__/
2
.venv/
3
docs/index.html
4
+lccdocs.log
main.py
@@ -2,8 +2,11 @@
import argparse
from importlib.util import module_from_spec, spec_from_file_location
5
+import logging
6
import sys
7
8
+logger = logging.getLogger(__name__)
9
+
10
if __name__ == "__main__":
11
parser = argparse.ArgumentParser(description="Lance un script")
12
parser.add_argument(
@@ -17,6 +20,8 @@
17
20
module = module_from_spec(spec)
18
21
spec.loader.exec_module(module)
19
22
23
+ logging.basicConfig(filename="lccdocs.log", level=logging.INFO)
24
25
if hasattr(module, "main"):
26
module.main()
27
else:
0 commit comments