Skip to main content

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

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.1.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file td-logger-0.4.1.1.tar.gz.

File metadata

  • Download URL: td-logger-0.4.1.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for td-logger-0.4.1.1.tar.gz
Algorithm Hash digest
SHA256 9bbedf6120c027e6adde67ac0588d33559eceb6c905d9b9d2f327646804e2c5e
MD5 97b971cf47a412ce544373cb209df135
BLAKE2b-256 c1d215a93b25c3a080a19cafc36404a35a97e5cbce931f2b824d77c9f974b926

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page