Lingua

Log.WriteLine Method

Definition

Overloads

Name Description
WriteLine(LogPriority, String, String)

Low-level logging call.

WriteLine(LogPriority, String, String, Object[])

Writes a log message at the specified priority using a composite format string.

WriteLine(LogPriority, String, String)

Low-level logging call.

[Android.Runtime.Register("println", "(ILjava/lang/String;Ljava/lang/String;)I", "")]
public static int WriteLine(Android.Util.LogPriority priority, string? tag, string msg);
[<Android.Runtime.Register("println", "(ILjava/lang/String;Ljava/lang/String;)I", "")>]
static member WriteLine : Android.Util.LogPriority * string * string -> int

Parameters

priority
LogPriority

The priority/type of this log message

tag
String

Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.

msg
String

The message you would like logged.

Returns

A positive value if the message was loggable (see #isLoggable).

Attributes

Remarks

Low-level logging call.

Java documentation for android.util.Log.println(int, java.lang.String, 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

WriteLine(LogPriority, String, String, Object[])

Writes a log message at the specified priority using a composite format string.

public static int WriteLine(Android.Util.LogPriority priority, string tag, string format, params object[] args);
static member WriteLine : Android.Util.LogPriority * string * string * obj[] -> int

Parameters

priority
LogPriority

The priority of the log message.

tag
String

Used to identify the source of a log message.

format
String

A composite format string.

args
Object[]

An object array that contains zero or more objects to format.

Returns

The number of bytes written.

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