Freigeben über


MemoryHandler.Publish(LogRecord) Method

Definition

Store a LogRecord in an internal buffer.

[Android.Runtime.Register("publish", "(Ljava/util/logging/LogRecord;)V", "GetPublish_Ljava_util_logging_LogRecord_Handler")]
public override void Publish (Java.Util.Logging.LogRecord? record);
[<Android.Runtime.Register("publish", "(Ljava/util/logging/LogRecord;)V", "GetPublish_Ljava_util_logging_LogRecord_Handler")>]
override this.Publish : Java.Util.Logging.LogRecord -> unit

Parameters

record
LogRecord

description of the log event. A null record is silently ignored and is not published

Attributes

Remarks

Store a LogRecord in an internal buffer.

If there is a Filter, its isLoggable method is called to check if the given log record is loggable. If not we return. Otherwise the given record is copied into an internal circular buffer. Then the record's level property is compared with the pushLevel. If the given level is greater than or equal to the pushLevel then push is called to write all buffered records to the target output Handler.

Java documentation for java.util.logging.MemoryHandler.publish(java.util.logging.LogRecord).

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