次の方法で共有


Logger.Severe Method

Definition

Overloads

Severe(ISupplier)

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

Severe(String)

Log a SEVERE message.

Severe(ISupplier)

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

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

Parameters

msgSupplier
ISupplier

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

Attributes

Remarks

Log a SEVERE 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 SEVERE 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.severe(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

Severe(String)

Log a SEVERE message.

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

Parameters

msg
String

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

Attributes

Remarks

Log a SEVERE message.

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

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