From 0477a7256091425ab845160f2b14bef264fcd7ed Mon Sep 17 00:00:00 2001 From: Bruno da Silva Belo Date: Mon, 14 Oct 2019 10:26:02 -0300 Subject: [PATCH] csharp: updating eina_log docs. Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8293 Differential Revision: https://phab.enlightenment.org/D10352 --- src/bindings/mono/eina_mono/eina_log.cs | 121 ++++++++++++++++++------ 1 file changed, 91 insertions(+), 30 deletions(-) diff --git a/src/bindings/mono/eina_mono/eina_log.cs b/src/bindings/mono/eina_mono/eina_log.cs index 5782ef6466..2671971550 100644 --- a/src/bindings/mono/eina_mono/eina_log.cs +++ b/src/bindings/mono/eina_mono/eina_log.cs @@ -10,8 +10,7 @@ namespace Eina // Manual wrappers around eina functions /// EFL Logging facilities. -/// -/// Since EFL 1.23. +/// Since EFL 1.23. /// public class Log { @@ -31,55 +30,97 @@ public class Log [DllImport(efl.Libs.Eina)] private static extern Level eina_log_level_get(); - /// The levels of logging. + /// The levels of logging. + /// Since EFL 1.23. + /// public enum Level { - /// Critical events. + /// Critical events. + /// Since EFL 1.23. + /// Critical, - /// Error events. + /// Error events. + /// Since EFL 1.23. + /// Error, - /// Warning events. + /// Warning events. + /// Since EFL 1.23. + /// Warning, - /// Informative events. + /// Informative events. + /// Since EFL 1.23. + /// Info, - /// Debugging messages. + /// Debugging messages. + /// Since EFL 1.23. + /// Debug, - /// Unknown events. + /// Unknown events. + /// Since EFL 1.23. + /// Unkown = (-2147483647 - 1) } - /// The colors to be used by the logging system. + /// The colors to be used by the logging system. + /// Since EFL 1.23. + /// public class Color { - /// Light red + /// Light red + /// Since EFL 1.23. + /// public static string LIGHTRED = "\033[31;1m"; - /// Red + /// Red + /// Since EFL 1.23. + /// public static string RED = "\033[31m"; - /// Light blue + /// Light blue + /// Since EFL 1.23. + /// public static string LIGHTBLUE = "\033[34;1m"; - /// Blue + /// Blue + /// Since EFL 1.23. + /// public static string BLUE = "\033[34m"; - /// Green + /// Green + /// Since EFL 1.23. + /// public static string GREEN = "\033[32;1m"; - /// Yellow + /// Yellow + /// Since EFL 1.23. + /// public static string YELLOW = "\033[33;1m"; - /// Orange + /// Orange + /// Since EFL 1.23. + /// public static string ORANGE = "\033[0;33m"; - /// White + /// White + /// Since EFL 1.23. + /// public static string WHITE = "\033[37;1m"; - /// Light cyan + /// Light cyan + /// Since EFL 1.23. + /// public static string LIGHTCYAN = "\033[36;1m"; - /// Cyan + /// Cyan + /// Since EFL 1.23. + /// public static string CYAN = "\033[36m"; - /// Reset + /// Reset + /// Since EFL 1.23. + /// public static string RESET = "\033[0m"; - /// Bold + /// Bold + /// Since EFL 1.23. + /// public static string HIGH = "\033[1m"; } private static int domain = -1; - /// Static class initializer. + /// Static class initializer. + /// Since EFL 1.23. + /// static Log() { const String name = "mono"; @@ -105,7 +146,10 @@ public class Log } } - /// Prints a critical message with context info. This context is filled automatically by the C# compiler. + /// Prints a critical message with context info. This context is + /// filled automatically by the C# compiler. + /// Since EFL 1.23. + /// /// The message to be printed. /// The line number this method was called from. /// The file this method was called from. @@ -116,7 +160,10 @@ public class Log eina_log_print(domain, Level.Critical, file, member, line, message); } - /// Prints an error message with context info. This context is filled automatically by the C# compiler. + /// Prints an error message with context info. This context is + /// filled automatically by the C# compiler. + /// Since EFL 1.23. + /// /// The message to be printed. /// The line number this method was called from. /// The file this method was called from. @@ -127,7 +174,10 @@ public class Log eina_log_print(domain, Level.Error, file, member, line, message); } - /// Prints a warning message with context info. This context is filled automatically by the C# compiler. + /// Prints a warning message with context info. This context is + /// filled automatically by the C# compiler. + /// Since EFL 1.23. + /// /// The message to be printed. /// The line number this method was called from. /// The file this method was called from. @@ -138,7 +188,10 @@ public class Log eina_log_print(domain, Level.Warning, file, member, line, message); } - /// Prints an informative message with context info. This context is filled automatically by the C# compiler. + /// Prints an informative message with context info. This context + /// is filled automatically by the C# compiler. + /// Since EFL 1.23. + /// /// The message to be printed. /// The line number this method was called from. /// The file this method was called from. @@ -149,7 +202,10 @@ public class Log eina_log_print(domain, Level.Info, file, member, line, message); } - /// Prints a debug message with context info. This context is filled automatically by the C# compiler. + /// Prints a debug message with context info. This context is + /// filled automatically by the C# compiler. + /// Since EFL 1.23. + /// /// The message to be printed. /// The line number this method was called from. /// The file this method was called from. @@ -160,14 +216,19 @@ public class Log eina_log_print(domain, Level.Debug, file, member, line, message); } - /// Sets the highest level log messages should be printed. Values larger than this one are ignored. + /// Sets the highest level log messages should be printed. Values + /// larger than this one are ignored. + /// Since EFL 1.23. + /// /// The global message level. public static void GlobalLevelSet(Level level) { eina_log_level_set(level); } - /// Gets the lowest level of messages that are not ignored. + /// Gets the lowest level of messages that are not ignored. + /// Since EFL 1.23. + /// /// The current message level. public static Level GlobalLevelGet() {