Sdílet prostřednictvím


LogManager.LoggerNames Property

Definition

Get an enumeration of known logger names.

public virtual Java.Util.IEnumeration? LoggerNames { [Android.Runtime.Register("getLoggerNames", "()Ljava/util/Enumeration;", "GetGetLoggerNamesHandler")] get; }
[<get: Android.Runtime.Register("getLoggerNames", "()Ljava/util/Enumeration;", "GetGetLoggerNamesHandler")>]
member this.LoggerNames : Java.Util.IEnumeration

Property Value

enumeration of logger name strings

Attributes

Remarks

Get an enumeration of known logger names.

Note: Loggers may be added dynamically as new classes are loaded. This method only reports on the loggers that are currently registered. It is also important to note that this method only returns the name of a Logger, not a strong reference to the Logger itself. The returned String does nothing to prevent the Logger from being garbage collected. In particular, if the returned name is passed to LogManager.getLogger(), then the caller must check the return value from LogManager.getLogger() for null to properly handle the case where the Logger has been garbage collected in the time since its name was returned by this method.

Java documentation for java.util.logging.LogManager.getLoggerNames().

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