Instantly share code, notes, and snippets.

What would you like to do?
Fluentd Javaプラグインのサンプル
// $ export CLASSPATH=.:./fluent-logger-0.2.5-SNAPSHOT-jar-with-dependencies.jar
// $ javac
// $ java FluentLogClient
import java.util.HashMap;
import java.util.Map;
import org.fluentd.logger.FluentLogger;
public class FluentLogClient {
private static FluentLogger LOG = FluentLogger.getLogger("myapp");
public static void main(String[] args) {
Map<String, Object> data = new HashMap<String, Object>();
data.put("keyFromJava1", "valueFromJava1");
data.put("keyFromJava2", "valueFromJava2");
LOG.log("debug", data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment