Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    fluent-logger-python 0.1.1

    Download button

    No screenshots available
    Downloads: 114  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
    October 4th, 2011, 14:43 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    fluent-logger-python description

    A Python logging handler for Fluent event collector

    Many web/mobile applications generate huge amount of event logs (c,f. login, logout, purchase, follow, etc). To analyze these event logs could be really valuable for improving the service. However, the challenge is collecting these logs seasily and reliably.

    Fluent solves that problem by having: easy installation, small footprint, plugins, reliable buffering, log forwarding, etc.

    fluent-logger-python is a Python library, to record the events from Python application.

    Installation

    This library is distributed as 'fluent-logger' python package. Please execute the following command to install it.

    pip install fluent-logger

    Configuration

    Fluent daemon must be lauched with the following configuration:

        < source >
          type tcp
          port 24224
        < /source >


    Use

    First, you need to call logger.setup() to create global logger instance. This call needs to be called only once, at the beggining of the application for example.

    By default, the logger assumes fluent daemon is launched locally. You can also specify remote logger by passing the options.

        from fluent import logger

        # for local fluent
        logger.setup('app')

        # for remote fluent
        logger.setup('app', server='host', port='24224')


    Then, please create the events like this. This will send the event to fluent, with tag 'app.follow' and the attributes 'from' and 'to'.

        from fluent import event

        # send event with tag app.follow
        event.Event('follow', {
          'from': 'userA',
          'to':   'userB'
        })



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    Python events | event collector | Python logging | Python | events | collector

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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