Package dalvik.system

Interface DalvikLogHandler


  • public interface DalvikLogHandler
    An optimized handler for efficient publishing of basic log messages. Implementers should also be subclasses of Handler.

    Unlike the default log handler, this API doesn't require intermediate objects to be allocated for log handling. It also includes a short tag, which may otherwise need to be calculated for each published message.

    • Method Detail

      • publish

        void publish​(Logger source,
                     String tag,
                     Level level,
                     String message)
        Publishes a log message. Unlike Handler.publish(java.util.logging.LogRecord), this method includes only the raw log message. Log messages that were created with additional fields (parameters, source methods, etc.) will flow through the conventional channels instead.
        Parameters:
        tag - the short (23 characters or fewer) logger tag identifying logger.