Logger.Warning Method
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
Warning(ISupplier) |
Log a WARNING message, which is only to be constructed if the logging level is such that the message will actually be logged. |
Warning(String) |
Log a WARNING message. |
Warning(ISupplier)
Log a WARNING message, which is only to be constructed if the logging level is such that the message will actually be logged.
[Android.Runtime.Register("warning", "(Ljava/util/function/Supplier;)V", "GetWarning_Ljava_util_function_Supplier_Handler", ApiSince=26)]
public virtual void Warning (Java.Util.Functions.ISupplier msgSupplier);
[<Android.Runtime.Register("warning", "(Ljava/util/function/Supplier;)V", "GetWarning_Ljava_util_function_Supplier_Handler", ApiSince=26)>]
abstract member Warning : Java.Util.Functions.ISupplier -> unit
override this.Warning : Java.Util.Functions.ISupplier -> unit
Parameters
- msgSupplier
- ISupplier
A function, which when called, produces the desired log message
- Attributes
Remarks
Log a WARNING 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 WARNING 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.
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
Warning(String)
Log a WARNING message.
[Android.Runtime.Register("warning", "(Ljava/lang/String;)V", "GetWarning_Ljava_lang_String_Handler")]
public virtual void Warning (string? msg);
[<Android.Runtime.Register("warning", "(Ljava/lang/String;)V", "GetWarning_Ljava_lang_String_Handler")>]
abstract member Warning : string -> unit
override this.Warning : string -> unit
Parameters
- msg
- String
The string message (or a key in the message catalog)
- Attributes
Remarks
Log a WARNING message.
If the logger is currently enabled for the WARNING message level then the given message is forwarded to all the registered output Handler objects.
Java documentation for java.util.logging.Logger.warning(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.