LogRecord Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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".
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
- 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.