sampsyo/loglet — pull request #10 by dahlia (2011-12-13 11:19:59+00:00)
Title: Creating a new loglet by using Python client library

This patch makes the `logic` parameter of `loglet.LogletHandler` class’s constructor. If `logic` is not present, it creates a new loglet. It can be useful for creating a temporary logging bucket. The patch also contains a new property named `url` which returns the url of a created (or specified) loglet.

Now this can be used as like:

```python
import sys
import logging
import loglet

logger = logging.getLogger(__name__)
loglet = loglet.LogletHandler()
logger.addHandler(loglet)
logger.setLevel(logging.DEBUG)

print>>sys.stderr, 'In this session logged messages will go to:', loglet.url
```

Thank you!