Compartir a través de


Logger Constructors

Definition

Overloads

Logger(IntPtr, JniHandleOwnership)

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

Logger(String, String)

Protected method to construct a logger for a named subsystem.

Logger(IntPtr, JniHandleOwnership)

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

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

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

Logger(String, String)

Protected method to construct a logger for a named subsystem.

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

Parameters

name
String

A name for the logger. This should be a dot-separated name and should normally be based on the package name or class name of the subsystem, such as java.net or javax.swing. It may be null for anonymous Loggers.

resourceBundleName
String

name of ResourceBundle to be used for localizing messages for this logger. May be null if none of the messages require localization.

Attributes

Exceptions

if the specified resource bundle can not be loaded.

Remarks

Protected method to construct a logger for a named subsystem.

The logger will be initially configured with a null Level and with useParentHandlers set to true.

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