Skip to content

Instantly share code, notes, and snippets.

@takawitter
Created September 2, 2013 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takawitter/6415118 to your computer and use it in GitHub Desktop.
Save takawitter/6415118 to your computer and use it in GitHub Desktop.
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