summaryrefslogtreecommitdiff
path: root/trollius/log.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-05-20 15:28:32 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-05-20 15:28:32 +0200
commit6dcf596ea618c68fa4b8a5883292426cbe926be8 (patch)
tree4b670ce64eb1503579f5c0aa76698417a3ddc398 /trollius/log.py
parent288d183cfac1819db80199db467d3762ee95131d (diff)
downloadtrollius-6dcf596ea618c68fa4b8a5883292426cbe926be8.tar.gz
Rename the "asyncio" module to "trollius" to support Python 3.4
Add the following code at the top of your file to support Trollius and Tulip: try: # Use Trollius on Python <= 3.2 import trollius as asyncio except ImportError: # Use Tulip on Python 3.3, or builtin asyncio on Python 3.4+ import asyncio
Diffstat (limited to 'trollius/log.py')
-rw-r--r--trollius/log.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/trollius/log.py b/trollius/log.py
new file mode 100644
index 0000000..23a7074
--- /dev/null
+++ b/trollius/log.py
@@ -0,0 +1,7 @@
+"""Logging configuration."""
+
+import logging
+
+
+# Name the logger after the package.
+logger = logging.getLogger(__package__)