Class Log
Definition
- Namespace:
- Tizen
- Assembly:
- Tizen.Log.dll
- API Level:
- 3
Provides methods to print log messages to the Tizen logging system.
C#Copypublic class Log
- Inheritance
-
System.ObjectLog
Methods
Debug(String, String, String, String, Int32)
Prints a log message with the DEBUG priority.
Declaration
C#Copypublic static void Debug(string tag, string message, string file = "", string func = "", int line = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | tag | The tag name of the log message. |
System.String | message | The log message to print. |
System.String | file | The source file path of the caller function. This argument will be set automatically by the compiler. |
System.String | func | The function name of the caller function. This argument will be set automatically by the compiler. |
System.Int32 | line | The line number of the calling position. This argument will be set automatically by the compiler. |
API Level: 3
Error(String, String, String, String, Int32)
Prints a log message with the ERROR priority.
Declaration
C#Copypublic static void Error(string tag, string message, string file = "", string func = "", int line = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | tag | The tag name of the log message. |
System.String | message | The log message to print. |
System.String | file | The source file path of the caller function. This argument will be set automatically by the compiler. |
System.String | func | The function name of the caller function. This argument will be set automatically by the compiler. |
System.Int32 | line | The line number of the calling position. This argument will be set automatically by the compiler. |
API Level: 3
Fatal(String, String, String, String, Int32)
Prints a log message with the FATAL priority.
Declaration
C#Copypublic static void Fatal(string tag, string message, string file = "", string func = "", int line = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | tag | The tag name of the log message. |
System.String | message | The log message to print. |
System.String | file | The source file path of the caller function. This argument will be set automatically by the compiler. |
System.String | func | The function name of the caller function. This argument will be set automatically by the compiler. |
System.Int32 | line | The line number of the calling position. This argument will be set automatically by the compiler. |
API Level: 3
Info(String, String, String, String, Int32)
Prints a log message with the INFO priority.
Declaration
C#Copypublic static void Info(string tag, string message, string file = "", string func = "", int line = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | tag | The tag name of the log message. |
System.String | message | The log message to print. |
System.String | file | The source file path of the caller function. This argument will be set automatically by the compiler. |
System.String | func | The function name of the caller function. This argument will be set automatically by the compiler. |
System.Int32 | line | The line number of the calling position. This argument will be set automatically by the compiler. |
API Level: 3
Verbose(String, String, String, String, Int32)
Prints a log message with the VERBOSE priority.
Declaration
C#Copypublic static void Verbose(string tag, string message, string file = "", string func = "", int line = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | tag | The tag name of the log message. |
System.String | message | The log message to print. |
System.String | file | The source file path of the caller function. This argument will be set automatically by the compiler. |
System.String | func | The function name of the caller function. This argument will be set automatically by the compiler. |
System.Int32 | line | The line number of the calling position. This argument will be set automatically by the compiler. |
API Level: 3
Warn(String, String, String, String, Int32)
Prints a log message with the WARNING priority.
Declaration
C#Copypublic static void Warn(string tag, string message, string file = "", string func = "", int line = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | tag | The tag name of the log message. |
System.String | message | The log message to print. |
System.String | file | The source file path of the caller function. This argument will be set automatically by the compiler. |
System.String | func | The function name of the caller function. This argument will be set automatically by the compiler. |
System.Int32 | line | The line number of the calling position. This argument will be set automatically by the compiler. |