Partager via


Handler.Formatter Property

Definition

Return the Formatter for this Handler. -or- Set a Formatter.

public virtual Java.Util.Logging.Formatter? Formatter { [Android.Runtime.Register("getFormatter", "()Ljava/util/logging/Formatter;", "GetGetFormatterHandler")] get; [Android.Runtime.Register("setFormatter", "(Ljava/util/logging/Formatter;)V", "GetSetFormatter_Ljava_util_logging_Formatter_Handler")] set; }
[<get: Android.Runtime.Register("getFormatter", "()Ljava/util/logging/Formatter;", "GetGetFormatterHandler")>]
[<set: Android.Runtime.Register("setFormatter", "(Ljava/util/logging/Formatter;)V", "GetSetFormatter_Ljava_util_logging_Formatter_Handler")>]
member this.Formatter : Java.Util.Logging.Formatter with get, set

Property Value

the Formatter (may be null).

Attributes

Exceptions

if newFormatter is null.

Remarks

Property getter documentation:

Return the Formatter for this Handler.

Java documentation for java.util.logging.Handler.getFormatter().

Property setter documentation:

Set a Formatter. This Formatter will be used to format LogRecords for this Handler.

Some Handlers may not use Formatters, in which case the Formatter will be remembered, but not used.

Java documentation for java.util.logging.Handler.setFormatter(java.util.logging.Formatter).

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