Discussion:
[Twisted-Python] ANN: Eliot 0.8, the logging system with causality
Judy Craig
2015-08-10 18:59:48 UTC
Permalink
This is an automatic reply. I am away from the office for the summer, returning on Tuesday, August 25, 2015. I will be happy to get back to you then.

Enjoy your summer!

Judy Craig
Student Services

This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. If you are not
the named addressee you should not disseminate, distribute or copy this email.
Itamar Turner-Trauring
2015-08-10 18:59:17 UTC
Permalink
Most logging systems can tell you what happened; Eliot tells you _why_
it happened:

$ python linkcheck.py | eliot-tree
4c42a789-76f5-4f0b-b154-3dd0e3041445
+-- ***@1/started
`-- urls: [u'http://google.com', u'http://nosuchurl']
+-- ***@2,1/started
`-- url: http://google.com
+-- ***@2,2/succeeded
+-- ***@3,1/started
`-- url: http://nosuchurl
+-- ***@3,2/failed
|-- exception: requests.exceptions.ConnectionError
|-- reason: ('Conn aborted', gaierror(-2, 'Name unknown'))
+-- ***@4/failed
|-- exception: exceptions.ValueError
|-- reason: ('Conn aborted.', gaierror(-2, 'Name unknown'))
And here's the code that generated these logs (eliot-tree [1] was used
to render the output):

import sys
from eliot import start_action, to_file
import requests
to_file(sys.stdout)

def check_links(urls):
with start_action(action_type="check_links", urls=urls):
for url in urls:
try:
with start_action(action_type="download", url=url):
response = requests.get(url)
response.raise_for_status()
except Exception as e:
raise ValueError(str(e))

check_links(["http://google.com"], ["http://nosuchurl"])

Interested? Read more at https://eliot.readthedocs.org/ [2].

Eliot is released under the Apache License 2 by ClusterHQ [3], the
Container Data People. We're hiring! [4]


Links:
------
[1] https://warehouse.python.org/project/eliot-tree/
[2] https://eliot.readthedocs.org/
[3] https://clusterhq.com
[4] https://clusterhq.com/careers/
Phil Mayers
2015-08-11 15:33:23 UTC
Permalink
Someone please un-sub this person?


-------- Forwarded Message --------
Subject: Re: [Twisted-Python] ANN: Eliot 0.8, the logging system with
causality
Date: Mon, 10 Aug 2015 12:59:48 -0600
From: Judy Craig <***@gsacrd.ab.ca>
Reply-To: Twisted general discussion <twisted-***@twistedmatrix.com>
To: twisted-***@twistedmatrix.com



This is an automatic reply. I am away from the office for the summer,
returning on Tuesday, August 25, 2015. I will be happy to get back to
you then.

Enjoy your summer!

Judy Craig
Student Services

This email and any files transmitted with it may be confidential and are
intended solely for the use of the individual or entity to whom they are
addressed. If you have received this email in error please notify the
system manager. If you are not the named addressee you should not
disseminate, distribute or copy this email.
Glyph
2015-08-11 20:48:41 UTC
Permalink
Post by Phil Mayers
Someone please un-sub this person?
If I've done my job right this message will not receive an autoreply...

-glyph
J Todd Ulrich
2015-08-11 20:55:33 UTC
Permalink
Yes please remove.

Walk Tall. 

J Todd Ulrich
m. 416.625.3209 

Please excuse brevity as this message sent from my BlackBerry 10 smartphone on the Rogers network.
  Original Message  
From: Glyph
Sent: Tuesday, August 11, 2015 4:49 PM
To: Twisted general discussion
Reply To: Twisted general discussion
Subject: Re: [Twisted-Python] List admin attention
Post by Phil Mayers
Someone please un-sub this person?
If I've done my job right this message will not receive an autoreply...

-glyph
Glyph Lefkowitz
2015-08-12 19:39:14 UTC
Permalink
Post by Glyph
Post by Phil Mayers
Someone please un-sub this person?
If I've done my job right this message will not receive an autoreply...
OK, I apparently didn't do it correctly, but hopefully this time it stuck ...

-glyph

Loading...