summaryrefslogtreecommitdiff
path: root/python/hello-010-world
diff options
context:
space:
mode:
Diffstat (limited to 'python/hello-010-world')
-rwxr-xr-xpython/hello-010-world4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/hello-010-world b/python/hello-010-world
index 7685af8fd3..91ebc242c6 100755
--- a/python/hello-010-world
+++ b/python/hello-010-world
@@ -1,10 +1,14 @@
#!/usr/bin/env python
+import logging
from qpid.connection010 import Connection
from qpid.spec010 import load
from qpid.util import connect
from qpid.datatypes import Message
+format = "%(asctime)s %(name)-12s %(levelname)-8s %(message)s"
+logging.basicConfig(level=logging.DEBUG, format=format, datefmt='%H:%M:%S')
+
spec = load("../specs/amqp.0-10.xml")
conn = Connection(connect("0.0.0.0", spec.port), spec)
conn.start(timeout=10)