Compartilhar via


LogRecord.SourceMethodName Property

Definition

Get the name of the method that (allegedly) issued the logging request. -or- Set the name of the method that (allegedly) issued the logging request.

public virtual string? SourceMethodName { [Android.Runtime.Register("getSourceMethodName", "()Ljava/lang/String;", "GetGetSourceMethodNameHandler")] get; [Android.Runtime.Register("setSourceMethodName", "(Ljava/lang/String;)V", "GetSetSourceMethodName_Ljava_lang_String_Handler")] set; }
[<get: Android.Runtime.Register("getSourceMethodName", "()Ljava/lang/String;", "GetGetSourceMethodNameHandler")>]
[<set: Android.Runtime.Register("setSourceMethodName", "(Ljava/lang/String;)V", "GetSetSourceMethodName_Ljava_lang_String_Handler")>]
member this.SourceMethodName : string with get, set

Property Value

the source method name

Attributes

Remarks

Property getter documentation:

Get the name of the method that (allegedly) issued the logging request.

Note that this sourceMethodName is not verified and may be spoofed. This information may either have been provided as part of the logging call, or it may have been inferred automatically by the logging framework. In the latter case, the information may only be approximate and may in fact describe an earlier call on the stack frame.

May be null if no information could be obtained.

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

Property setter documentation:

Set the name of the method that (allegedly) issued the logging request.

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