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. If you have feedback or questions as you navigate the site, click Send Feedback.


Stay organized with collections Save and categorize content based on your preferences.

Class DevLogHandler

  • java.lang.Object
    • java.util.logging.Handler
      • java.util.logging.StreamHandler

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

      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.
        publish in class java.util.logging.StreamHandler
        record - The application-level log that should be recorded.
        See Also:
      • convertLogLevel

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

        public static java.lang.String getRequestId()