calendar.clear();
calendar.set(2000, 11, 31, 13, 15);
final long myTime = calendar.getTimeInMillis();
final String myMsg = "Message";
final Level myLevel = Level.info;
// The timestamp of GAE LogRecord unit is microsecond.
LogRecord logRecord = new LogRecord(myLevel, myTime * 1000, myMsg);
final StringBuilder called = new StringBuilder();
WjrGAEProdLogRecorder recorder = new WjrGAEProdLogRecorder() {
@Override
protected String formatLog(long millis, String level, String msg) {
assertThat(millis, is(myTime));
assertThat(level, is(myLevel.name()));
assertThat(msg, is(myMsg));
called.append("1");
return super.formatLog(millis, level, msg);
}
};