Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

DevLogHandler

Stay organized with collections Save and categorize content based on your preferences.
com.google.appengine.api.log.dev

Class DevLogHandler

  • java.lang.Object
    • java.util.logging.Handler
      • java.util.logging.StreamHandler
        • com.google.appengine.api.log.dev.DevLogHandler


  • public class DevLogHandler
    extends java.util.logging.StreamHandler
    • Constructor Summary

      Constructors 
      Constructor and Description
      DevLogHandler(LocalLogService serviceToUse)
      Creates a new LogHandler that writes log records to the LocalLogService.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int convertLogLevel(java.util.logging.Level level) 
      static java.lang.String getRequestId() 
      void publish(java.util.logging.LogRecord record)
      Writes an application-level log to the LocalLogService.
      • Methods inherited from class java.util.logging.StreamHandler

        close, flush, isLoggable, setEncoding, setOutputStream
      • Methods inherited from class java.util.logging.Handler

        getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DevLogHandler

        public DevLogHandler(LocalLogService serviceToUse)
        Creates a new LogHandler that writes log records to the LocalLogService.
    • Method Detail

      • publish

        public void publish(java.util.logging.LogRecord record)
        Writes an application-level log to the LocalLogService.
        Overrides:
        publish in class java.util.logging.StreamHandler
        Parameters:
        record - The application-level log that should be recorded.
        See Also:
        StreamHandler.publish(LogRecord)
      • convertLogLevel

        public int convertLogLevel(java.util.logging.Level level)
      • getRequestId

        public static java.lang.String getRequestId()