LogRecord.Message Property

Definition

Get the "raw" log message, before localization or formatting. -or- Set the "raw" log message, before localization or formatting.

public virtual string? Message { [Android.Runtime.Register("getMessage", "()Ljava/lang/String;", "GetGetMessageHandler")] get; [Android.Runtime.Register("setMessage", "(Ljava/lang/String;)V", "GetSetMessage_Ljava_lang_String_Handler")] set; }
[<get: Android.Runtime.Register("getMessage", "()Ljava/lang/String;", "GetGetMessageHandler")>]
[<set: Android.Runtime.Register("setMessage", "(Ljava/lang/String;)V", "GetSetMessage_Ljava_lang_String_Handler")>]
member this.Message : string with get, set

Property Value

the raw message string

Attributes

Remarks

Property getter documentation:

Get the "raw" log message, before localization or formatting.

May be null, which is equivalent to the empty string "".

This message may be either the final text or a localization key.

During formatting, if the source logger has a localization ResourceBundle and if that ResourceBundle has an entry for this message string, then the message string is replaced with the localized value.

Java documentation for java.util.logging.LogRecord.getMessage().

Property setter documentation:

Set the "raw" log message, before localization or formatting.

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