aboutsummaryrefslogtreecommitdiff
path: root/examples/example2/library1.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example2/library1.py')
-rw-r--r--examples/example2/library1.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/example2/library1.py b/examples/example2/library1.py
new file mode 100644
index 0000000..a47a6da
--- /dev/null
+++ b/examples/example2/library1.py
@@ -0,0 +1,12 @@
+import logging
+import sys
+
+logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
+logger = logging.getLogger(__name__)
+
+
+def foo():
+ logger.debug("Library1")
+
+if __name__ == "__main__":
+ foo()