Class Log

Definition

Namespace:
Tizen
Assembly:
Tizen.Log.dll

Provides methods to print log messages to the Tizen logging system. Depending on products, some priorities (e.g., Vervose and Debug) can be disabled by default to prevent too many logs.

C#
Copy
public class Log
Inheritance
object
Log

Methods

View Source

Debug(string, string, string, string, int)

Prints a regular log message with the DEBUG priority.

Declaration
C#
Copy
public static void Debug(string tag, string message, string file = "", string func = "", int line = 0)
Parameters
Type Name Description
string tag

The tag name of the log message.

string message

The log message to print.

string file

The source file path of the caller function. This argument will be set automatically by the compiler.

string func

The function name of the caller function. This argument will be set automatically by the compiler.

int line

The line number of the calling position. This argument will be set automatically by the compiler.

View Source

Error(string, string, string, string, int)

Prints a regular log message with the ERROR priority.

Declaration
C#
Copy
public static void Error(string tag, string message, string file = "", string func = "", int line = 0)
Parameters
Type Name Description
string tag

The tag name of the log message.

string message

The log message to print.

string file

The source file path of the caller function. This argument will be set automatically by the compiler.

string func

The function name of the caller function. This argument will be set automatically by the compiler.

int line

The line number of the calling position. This argument will be set automatically by the compiler.

View Source

Fatal(string, string, string, string, int)

Prints a regular log message with the FATAL priority.

Declaration
C#
Copy
public static void Fatal(string tag, string message, string file = "", string func = "", int line = 0)
Parameters
Type Name Description
string tag

The tag name of the log message.

string message

The log message to print.

string file

The source file path of the caller function. This argument will be set automatically by the compiler.

string func

The function name of the caller function. This argument will be set automatically by the compiler.

int line

The line number of the calling position. This argument will be set automatically by the compiler.

View Source

Info(string, string, string, string, int)

Prints a regular log message with the INFO priority.

Declaration
C#
Copy
public static void Info(string tag, string message, string file = "", string func = "", int line = 0)
Parameters
Type Name Description
string tag

The tag name of the log message.

string message

The log message to print.

string file

The source file path of the caller function. This argument will be set automatically by the compiler.

string func

The function name of the caller function. This argument will be set automatically by the compiler.

int line

The line number of the calling position. This argument will be set automatically by the compiler.

View Source

Verbose(string, string, string, string, int)

Prints a regular log message with the VERBOSE priority.

Declaration
C#
Copy
public static void Verbose(string tag, string message, string file = "", string func = "", int line = 0)
Parameters
Type Name Description
string tag

The tag name of the log message.

string message

The log message to print.

string file

The source file path of the caller function. This argument will be set automatically by the compiler.

string func

The function name of the caller function. This argument will be set automatically by the compiler.

int line

The line number of the calling position. This argument will be set automatically by the compiler.

View Source

Warn(string, string, string, string, int)

Prints a regular log message with the WARNING priority.

Declaration
C#
Copy
public static void Warn(string tag, string message, string file = "", string func = "", int line = 0)
Parameters
Type Name Description
string tag

The tag name of the log message.

string message

The log message to print.

string file

The source file path of the caller function. This argument will be set automatically by the compiler.

string func

The function name of the caller function. This argument will be set automatically by the compiler.

int line

The line number of the calling position. This argument will be set automatically by the compiler.