Udostępnij za pośrednictwem


LogPrinter Constructors

Definition

Overloads

LogPrinter(LogPriority, String)

Create a new Printer that sends to the log with the given priority and tag.

LogPrinter(IntPtr, JniHandleOwnership)

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

LogPrinter(LogPriority, String)

Create a new Printer that sends to the log with the given priority and tag.

[Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "")]
public LogPrinter (Android.Util.LogPriority priority, string? tag);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "")>]
new Android.Util.LogPrinter : Android.Util.LogPriority * string -> Android.Util.LogPrinter

Parameters

priority
LogPriority

The desired log priority: android.util.Log#VERBOSE Log.VERBOSE, android.util.Log#DEBUG Log.DEBUG, android.util.Log#INFO Log.INFO, android.util.Log#WARN Log.WARN, or android.util.Log#ERROR Log.ERROR.

tag
String

A string tag to associate with each printed log statement.

Attributes

Remarks

Create a new Printer that sends to the log with the given priority and tag.

Java documentation for android.util.LogPrinter.LogPrinter(int, java.lang.String).

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

LogPrinter(IntPtr, JniHandleOwnership)

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

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

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