Qt 5 の未来は明るいブログ

fluentd plugin for qml

Published: 2013-01-31 / Last modified: 2013-02-19

"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'})


$ git clone git://git.qtquick.me/qmlplugins/fluentd.git
$ cd fluentd
$ qmake
$ make
$ (sudo) make install