Share via


Level Constructors

Definition

Overloads

Level(IntPtr, JniHandleOwnership)

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

Level(String, Int32)

Create a named Level with a given integer value.

Level(String, Int32, String)

Create a named Level with a given integer value and a given localization resource name.

Level(IntPtr, JniHandleOwnership)

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

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

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

Level(String, Int32)

Create a named Level with a given integer value.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")]
protected Level (string name, int value);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")>]
new Java.Util.Logging.Level : string * int -> Java.Util.Logging.Level

Parameters

name
String

the name of the Level, for example "SEVERE".

value
Int32

an integer value for the level.

Attributes

Exceptions

if name is null.

Remarks

Create a named Level with a given integer value.

Note that this constructor is "protected" to allow subclassing. In general clients of logging should use one of the constant Level objects such as SEVERE or FINEST. However, if clients need to add new logging levels, they may subclass Level and define new constants.

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

Level(String, Int32, String)

Create a named Level with a given integer value and a given localization resource name.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;)V", "")]
protected Level (string name, int value, string? resourceBundleName);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;)V", "")>]
new Java.Util.Logging.Level : string * int * string -> Java.Util.Logging.Level

Parameters

name
String

the name of the Level, for example "SEVERE".

value
Int32

an integer value for the level.

resourceBundleName
String

name of a resource bundle to use in localizing the given name. If the resourceBundleName is null or an empty string, it is ignored.

Attributes

Exceptions

if name is null.

Remarks

Create a named Level with a given integer value and a given localization resource name.

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