Package com.google.apphosting.runtime
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
LogHandleris 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 Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidclose()abstract voidflush()voidinit(Logger rootLogger)Initialize theLogHandlerby installing it on the root logger.abstract voidpublish(LogRecord record)-
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
-
-
-
Method Detail
-
init
public void init(Logger rootLogger)
Initialize theLogHandlerby 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.
-
-