IT. Expert System.

Android Reference

EventLog


android.util

Class EventLog



  • public class EventLog
    extends Object
    Access to the system diagnostic event record. System diagnostic events are used to record certain system-level events (such as garbage collection, activity manager state, system watchdogs, and other low level activity), which may be automatically collected and analyzed during system development.

    This is not the main "logcat" debugging log (Log)! These diagnostic events are for system integrators, not application authors.

    Events use integer tag codes corresponding to /system/etc/event-log-tags. They carry a payload of one or more int, long, or String values. The event-log-tags file defines the payload contents for each type code.

    • Constructor Detail

      • EventLog

        public EventLog()
    • Method Detail

      • writeEvent

        public static int writeEvent(int tag,
                     int value)
        Record an event log message.
        Parameters:
        tag - The event type tag code
        value - A value to log
        Returns:
        The number of bytes written
      • writeEvent

        public static int writeEvent(int tag,
                     long value)
        Record an event log message.
        Parameters:
        tag - The event type tag code
        value - A value to log
        Returns:
        The number of bytes written
      • writeEvent

        public static int writeEvent(int tag,
                     String str)
        Record an event log message.
        Parameters:
        tag - The event type tag code
        str - A value to log
        Returns:
        The number of bytes written
      • writeEvent

        public static int writeEvent(int tag,
                     Object... list)
        Record an event log message.
        Parameters:
        tag - The event type tag code
        list - A list of values to log
        Returns:
        The number of bytes written
      • readEvents

        public static void readEvents(int[] tags,
                      Collection<EventLog.Event> output)
                               throws IOException
        Read events from the log, filtered by type.
        Parameters:
        tags - to search for
        output - container to add events into
        Throws:
        IOException - if something goes wrong reading events
      • getTagName

        public static String getTagName(int tag)
        Get the name associated with an event type tag code.
        Parameters:
        tag - code to look up
        Returns:
        the name of the tag, or null if no tag has that number
      • getTagCode

        public static int getTagCode(String name)
        Get the event type tag code associated with an event name.
        Parameters:
        name - of event to look up
        Returns:
        the tag code, or -1 if no tag has that name


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 284 / 158778298. Delta: 0.03227 с