Package com.google.apphosting.api.ApiProxy.LogRecord

Examples of com.google.apphosting.api.ApiProxy.LogRecord.Level


    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);
      }
    };
View Full Code Here

TOP

Related Classes of com.google.apphosting.api.ApiProxy.LogRecord.Level

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.