LogRecord Constructors

Definition

Overloads

LogRecord(Level, String)

Construct a LogRecord with the given level and message values.

LogRecord(IntPtr, JniHandleOwnership)

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

LogRecord(Level, String)

Construct a LogRecord with the given level and message values.

[Android.Runtime.Register(".ctor", "(Ljava/util/logging/Level;Ljava/lang/String;)V", "")]
public LogRecord (Java.Util.Logging.Level? level, string? msg);
[<Android.Runtime.Register(".ctor", "(Ljava/util/logging/Level;Ljava/lang/String;)V", "")>]
new Java.Util.Logging.LogRecord : Java.Util.Logging.Level * string -> Java.Util.Logging.LogRecord

Parameters

level
Level

a logging level value

msg
String

the raw non-localized logging message (may be null)

Attributes

Exceptions

if level is null.

Remarks

Construct a LogRecord with the given level and message values.

The sequence property will be initialized with a new unique value. These sequence values are allocated in increasing order within a VM.

The millis property will be initialized to the current time.

The thread ID property will be initialized with a unique ID for the current thread.

All other properties will be initialized to "null".

Java documentation for java.util.logging.LogRecord.LogRecord(java.util.logging.Level, 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

LogRecord(IntPtr, JniHandleOwnership)

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

protected LogRecord (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Logging.LogRecord : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Logging.LogRecord

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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