Class Log
Definition
- Namespace:
- Tizen
- Assembly:
- Tizen.Log.dll
- API Level:
- 3
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.
public class Log
- Inheritance
-
Log
Methods
View SourceDebug(String, String, String, String, Int32)
Prints a log message with the DEBUG priority.
Declaration
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. |
Int32 | line | The line number of the calling position. This argument will be set automatically by the compiler. |
API Level: 3
View SourceError(String, String, String, String, Int32)
Prints a log message with the ERROR priority.
Declaration
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. |
Int32 | line | The line number of the calling position. This argument will be set automatically by the compiler. |
API Level: 3
View SourceFatal(String, String, String, String, Int32)
Prints a log message with the FATAL priority.
Declaration
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. |
Int32 | line | The line number of the calling position. This argument will be set automatically by the compiler. |
API Level: 3
View SourceInfo(String, String, String, String, Int32)
Prints a log message with the INFO priority.
Declaration
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. |
Int32 | line | The line number of the calling position. This argument will be set automatically by the compiler. |
API Level: 3
View SourceVerbose(String, String, String, String, Int32)
Prints a log message with the VERBOSE priority.
Declaration
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. |
Int32 | line | The line number of the calling position. This argument will be set automatically by the compiler. |
API Level: 3
View SourceWarn(String, String, String, String, Int32)
Prints a log message with the WARNING priority.
Declaration
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. |
Int32 | line | The line number of the calling position. This argument will be set automatically by the compiler. |