Share via


ILoggingMXBean.GetParentLoggerName(String) Method

Definition

Returns the name of the parent for the specified logger.

[Android.Runtime.Register("getParentLoggerName", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetParentLoggerName_Ljava_lang_String_Handler:Java.Util.Logging.ILoggingMXBeanInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetParentLoggerName (string? loggerName);
[<Android.Runtime.Register("getParentLoggerName", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetParentLoggerName_Ljava_lang_String_Handler:Java.Util.Logging.ILoggingMXBeanInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetParentLoggerName : string -> string

Parameters

loggerName
String

The name of a Logger.

Returns

the name of the nearest existing parent logger; an empty string if the specified logger is the root logger. If the specified logger does not exist, null is returned.

Attributes

Remarks

Returns the name of the parent for the specified logger. If the specified logger does not exist, null is returned. If the specified logger is the root Logger in the namespace, the result will be an empty string.

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