Class LogHandler

java.lang.Object
java.util.logging.Handler
com.google.apphosting.runtime.LogHandler
Direct Known Subclasses:
JsonLogHandler, NullSandboxLogHandler

public abstract class LogHandler extends Handler
LogHandler is installed on the root logger. This parent class will filter all messages specific to the runtime so they do not get sent to the customer. This class is meant to be inherited to handle the filtered log messages appropriately.
  • Method Details

    • init

      public void init(Logger rootLogger)
      Initialize the LogHandler by installing it on the root logger. After this call, log messages specific to the runtime will be filtered out from being sent to the customer.
    • publish

      public abstract void publish(LogRecord record)
      Specified by:
      publish in class Handler
    • flush

      public abstract void flush()
      Specified by:
      flush in class Handler
    • close

      public abstract void close()
      Specified by:
      close in class Handler