Created
September 2, 2013 17:11
-
-
Save takawitter/6415118 to your computer and use it in GitHub Desktop.
https://github.com/takawitter/fluent-logger-java/commit/25b05292b3f9d01b6b0565efb3fe9cfe0b2d4252 の使い方。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.fluentd.logger.FluentLogger; | |
public class FluentLoggerTest { | |
public static class Log{ | |
public Log(String name, String msg){ | |
this.name = name; | |
this.msg = msg; | |
} | |
public String getName() { | |
return name; | |
} | |
public String getMsg() { | |
return msg; | |
} | |
private String name; | |
private String msg; | |
} | |
public static void main(String[] args) throws Exception{ | |
FluentLogger logger = FluentLogger.getLogger("myapp"); | |
logger.log("log", new Log("bob", "hello")); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment