次の方法で共有


Logger.Config Method

Definition

Overloads

Config(ISupplier)

Log a CONFIG message, which is only to be constructed if the logging level is such that the message will actually be logged.

Config(String)

Log a CONFIG message.

Config(ISupplier)

Log a CONFIG message, which is only to be constructed if the logging level is such that the message will actually be logged.

[Android.Runtime.Register("config", "(Ljava/util/function/Supplier;)V", "GetConfig_Ljava_util_function_Supplier_Handler", ApiSince=26)]
public virtual void Config (Java.Util.Functions.ISupplier msgSupplier);
[<Android.Runtime.Register("config", "(Ljava/util/function/Supplier;)V", "GetConfig_Ljava_util_function_Supplier_Handler", ApiSince=26)>]
abstract member Config : Java.Util.Functions.ISupplier -> unit
override this.Config : Java.Util.Functions.ISupplier -> unit

Parameters

msgSupplier
ISupplier

A function, which when called, produces the desired log message

Attributes

Remarks

Log a CONFIG message, which is only to be constructed if the logging level is such that the message will actually be logged.

If the logger is currently enabled for the CONFIG message level then the message is constructed by invoking the provided supplier function and forwarded to all the registered output Handler objects.

Added in 1.8.

Java documentation for java.util.logging.Logger.config(java.util.function.Supplier<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

Config(String)

Log a CONFIG message.

[Android.Runtime.Register("config", "(Ljava/lang/String;)V", "GetConfig_Ljava_lang_String_Handler")]
public virtual void Config (string? msg);
[<Android.Runtime.Register("config", "(Ljava/lang/String;)V", "GetConfig_Ljava_lang_String_Handler")>]
abstract member Config : string -> unit
override this.Config : string -> unit

Parameters

msg
String

The string message (or a key in the message catalog)

Attributes

Remarks

Log a CONFIG message.

If the logger is currently enabled for the CONFIG message level then the given message is forwarded to all the registered output Handler objects.

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