Android Guides | Samples

Android.Util.EventLog Class

Access to the system diagnostic event record.

See Also: EventLog

Syntax

[Android.Runtime.Register("android/util/EventLog", DoNotGenerateAcw=true)]
public class EventLog : Object

Remarks

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.

[Android Documentation]

Requirements

Namespace: Android.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8

The members of Android.Util.EventLog are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
GetTagCode(String) : Int32
Get the event type tag code associated with an event name.
static
GetTagName(Int32) : String
Get the name associated with an event type tag code.
static
ReadEvents(Int32[], ICollection<EventLog.Event>)
static
ReadEventsAsync(Int32[], ICollection<EventLog.Event>) : Task
static
WriteEvent(Int32, params Object[]) : Int32
Record an event log message.
static
WriteEvent(Int32, Int32) : Int32
Record an event log message.
static
WriteEvent(Int32, Int64) : Int32
Record an event log message.
static
WriteEvent(Int32, String) : Int32
Record an event log message.
static
WriteEventAsync(Int32, params Object[]) : System.Threading.Tasks.Task<int>
static
WriteEventAsync(Int32, Int32) : System.Threading.Tasks.Task<int>
static
WriteEventAsync(Int32, Int64) : System.Threading.Tasks.Task<int>
static
WriteEventAsync(Int32, String) : System.Threading.Tasks.Task<int>