Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    td-logger 0.4.3

    Download button

    No screenshots available
    Downloads: 116  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Kazuki Ohta | More programs
    MIT/X Consortium Lic... / FREE
    September 28th, 2011, 02:39 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    td-logger description

    A Python logging handler for Treasure Data Cloud

    td-loger is a Python 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
       
          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!


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    Python logging | logging library | Treasure Data Cloud | Python | logging | library

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM