fluentd plugin for qml

Fluentd” is a OSS lightweight and flexible log collector. Fluentd receives logs as JSON streams, buffers them, and sends them to other systems like S3, MongoDB, Hadoop, or other Fluentds.

I’ve written a tiny plugin to send logs from qml to fluentd like this.

import QtQuick 2.0
import QtFluentd 0.1

Rectangle {
    Fluentd {
        id: fluentd
    }

    Component.onCompleted: {
        fluentd.send('debug.qml-fluentd', {'event': 'Component.onCompleted'})
    }
}

Installation

$ git clone git://git.qt-users.jp/codereview/qmlplugins/fluentd.git
$ cd fluentd
$ qmake
$ make
$ (sudo) make install

enjoy!

あわせて読みたい