Udostępnij za pośrednictwem


MemoryHandler Constructors

Definition

Overloads

MemoryHandler()

Create a MemoryHandler and configure it based on LogManager configuration properties.

MemoryHandler(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

MemoryHandler(Handler, Int32, Level)

Create a MemoryHandler.

MemoryHandler()

Create a MemoryHandler and configure it based on LogManager configuration properties.

[Android.Runtime.Register(".ctor", "()V", "")]
public MemoryHandler ();
Attributes

Exceptions

if property value are invalid and no default value could be used.

Remarks

Create a MemoryHandler and configure it based on LogManager configuration properties.

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

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

MemoryHandler(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected MemoryHandler (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Logging.MemoryHandler : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Logging.MemoryHandler

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

MemoryHandler(Handler, Int32, Level)

Create a MemoryHandler.

[Android.Runtime.Register(".ctor", "(Ljava/util/logging/Handler;ILjava/util/logging/Level;)V", "")]
public MemoryHandler (Java.Util.Logging.Handler? target, int size, Java.Util.Logging.Level? pushLevel);
[<Android.Runtime.Register(".ctor", "(Ljava/util/logging/Handler;ILjava/util/logging/Level;)V", "")>]
new Java.Util.Logging.MemoryHandler : Java.Util.Logging.Handler * int * Java.Util.Logging.Level -> Java.Util.Logging.MemoryHandler

Parameters

target
Handler

the Handler to which to publish output.

size
Int32

the number of log records to buffer (must be greater than zero)

pushLevel
Level

message level to push on

Attributes

Exceptions

if property value are invalid and no default value could be used.

Remarks

Create a MemoryHandler.

The MemoryHandler is configured based on LogManager properties (or their default values) except that the given pushLevel argument and buffer size argument are used.

Java documentation for java.util.logging.MemoryHandler.MemoryHandler(java.util.logging.Handler, int, java.util.logging.Level).

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