UNKNOWN
Project description
td-loger: logging library for Treasure Data Cloud
=================================================
Setup
-----
Before using this logging handler, td-agent must be properly configured. Please
confirm these settings are in your /etc/td-agent/td-agent.conf.
## built-in TCP input
<source>
type tcp
</source>
# Treasure Data output
# match events whose tag is td.DATABASE.TABLE
<match td.*.*>
type tdlog
apikey YOUR_API_KEY
</match>
Usage
-----
Check out the tests folder for more samples.
import logging
from tdlog import logger
logging.basicConfig(level=logging.INFO)
l = logging.getLogger('td_logger.test')
l.addHandler(logger.TreasureDataHandler())
l.info('Some message')
js = { "semicolon" : ";", "at" : "@" }
l.info(js)
Have fun!
Special Thanks
--------------
- [Joshua Kuntz](https://github.com/j3kuntz) for the original work
=================================================
Setup
-----
Before using this logging handler, td-agent must be properly configured. Please
confirm these settings are in your /etc/td-agent/td-agent.conf.
## built-in TCP input
<source>
type tcp
</source>
# Treasure Data output
# match events whose tag is td.DATABASE.TABLE
<match td.*.*>
type tdlog
apikey YOUR_API_KEY
</match>
Usage
-----
Check out the tests folder for more samples.
import logging
from tdlog import logger
logging.basicConfig(level=logging.INFO)
l = logging.getLogger('td_logger.test')
l.addHandler(logger.TreasureDataHandler())
l.info('Some message')
js = { "semicolon" : ";", "at" : "@" }
l.info(js)
Have fun!
Special Thanks
--------------
- [Joshua Kuntz](https://github.com/j3kuntz) for the original work
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
td-logger-0.4.1.tar.gz
(2.3 kB
view details)
File details
Details for the file td-logger-0.4.1.tar.gz
.
File metadata
- Download URL: td-logger-0.4.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86de90138ad439de43431151881ef8ceac10465a339c3e3045b0112c8519701a |
|
MD5 | afadcff39631f9e0f5bb30ad86548d26 |
|
BLAKE2b-256 | 8e71bbafe9d09de687c3b57fcf0380fb4676789b102ccdc56d4d9b239f582488 |