Sdílet prostřednictvím


EventLog.WriteEvent Method

Definition

Overloads

WriteEvent(Int32, String)

Record an event log message.

WriteEvent(Int32, Single)

Record an event log message.

WriteEvent(Int32, Object[])

Record an event log message.

WriteEvent(Int32, Int32)

Record an event log message.

WriteEvent(Int32, Int64)

Record an event log message.

WriteEvent(Int32, String)

Record an event log message.

[Android.Runtime.Register("writeEvent", "(ILjava/lang/String;)I", "")]
public static int WriteEvent (int tag, string? str);
[<Android.Runtime.Register("writeEvent", "(ILjava/lang/String;)I", "")>]
static member WriteEvent : int * string -> int

Parameters

tag
Int32

The event type tag code

str
String

A value to log

Returns

The number of bytes written

Attributes

Remarks

Record an event log message.

Java documentation for android.util.EventLog.writeEvent(int, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

WriteEvent(Int32, Single)

Record an event log message.

[Android.Runtime.Register("writeEvent", "(IF)I", "", ApiSince=23)]
public static int WriteEvent (int tag, float value);
[<Android.Runtime.Register("writeEvent", "(IF)I", "", ApiSince=23)>]
static member WriteEvent : int * single -> int

Parameters

tag
Int32

The event type tag code

value
Single

A value to log

Returns

The number of bytes written

Attributes

Remarks

Record an event log message.

Java documentation for android.util.EventLog.writeEvent(int, float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

WriteEvent(Int32, Object[])

Record an event log message.

[Android.Runtime.Register("writeEvent", "(I[Ljava/lang/Object;)I", "")]
public static int WriteEvent (int tag, params Java.Lang.Object[]? list);
[<Android.Runtime.Register("writeEvent", "(I[Ljava/lang/Object;)I", "")>]
static member WriteEvent : int * Java.Lang.Object[] -> int

Parameters

tag
Int32

The event type tag code

list
Object[]

Returns

The number of bytes written

Attributes

Remarks

Java documentation for android.util.EventLog.writeEvent(int, float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

WriteEvent(Int32, Int32)

Record an event log message.

[Android.Runtime.Register("writeEvent", "(II)I", "")]
public static int WriteEvent (int tag, int value);
[<Android.Runtime.Register("writeEvent", "(II)I", "")>]
static member WriteEvent : int * int -> int

Parameters

tag
Int32

The event type tag code

value
Int32

A value to log

Returns

The number of bytes written

Attributes

Remarks

Record an event log message.

Java documentation for android.util.EventLog.writeEvent(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

WriteEvent(Int32, Int64)

Record an event log message.

[Android.Runtime.Register("writeEvent", "(IJ)I", "")]
public static int WriteEvent (int tag, long value);
[<Android.Runtime.Register("writeEvent", "(IJ)I", "")>]
static member WriteEvent : int * int64 -> int

Parameters

tag
Int32

The event type tag code

value
Int64

A value to log

Returns

The number of bytes written

Attributes

Remarks

Record an event log message.

Java documentation for android.util.EventLog.writeEvent(int, long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to