Przeczytaj w języku angielskim

Udostępnij za pośrednictwem


Logger.AddHandler(Handler) Method

Definition

Add a log Handler to receive logging messages.

[Android.Runtime.Register("addHandler", "(Ljava/util/logging/Handler;)V", "GetAddHandler_Ljava_util_logging_Handler_Handler")]
public virtual void AddHandler(Java.Util.Logging.Handler handler);

Parameters

handler
Handler

a logging Handler

Attributes

Remarks

Add a log Handler to receive logging messages.

By default, Loggers also send their output to their parent logger. Typically the root Logger is configured with a set of Handlers that essentially act as default handlers for all loggers.

Java documentation for java.util.logging.Logger.addHandler(java.util.logging.Handler).

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

Produkt Wersje
.NET for Android .NET for Android API 34, .NET for Android API 35, .NET for Android API 36