@@ -25,6 +25,12 @@ namespace Uno.Diagnostics
25
25
_handler = handler ;
26
26
}
27
27
28
+ /** Writes a debug message to the log. */
29
+ public static void Debug ( object message )
30
+ {
31
+ WriteLine ( LogLevel . Debug , message ) ;
32
+ }
33
+
28
34
/** Writes a debug message to the log. */
29
35
public static void Debug ( string message )
30
36
{
@@ -37,6 +43,12 @@ namespace Uno.Diagnostics
37
43
WriteLine ( LogLevel . Debug , format , args ) ;
38
44
}
39
45
46
+ /** Writes an informational message to the log. */
47
+ public static void Information ( object message )
48
+ {
49
+ WriteLine ( LogLevel . Information , message ) ;
50
+ }
51
+
40
52
/** Writes an informational message to the log. */
41
53
public static void Information ( string message )
42
54
{
@@ -49,6 +61,12 @@ namespace Uno.Diagnostics
49
61
WriteLine ( LogLevel . Information , format , args ) ;
50
62
}
51
63
64
+ /** Writes a warning message to the log. */
65
+ public static void Warning ( object message )
66
+ {
67
+ WriteLine ( LogLevel . Warning , message ) ;
68
+ }
69
+
52
70
/** Writes a warning message to the log. */
53
71
public static void Warning ( string message )
54
72
{
@@ -61,6 +79,12 @@ namespace Uno.Diagnostics
61
79
WriteLine ( LogLevel . Warning , format , args ) ;
62
80
}
63
81
82
+ /** Writes an error message to the log. */
83
+ public static void Error ( object message )
84
+ {
85
+ WriteLine ( LogLevel . Error , message ) ;
86
+ }
87
+
64
88
/** Writes an error message to the log. */
65
89
public static void Error ( string message )
66
90
{
@@ -73,6 +97,12 @@ namespace Uno.Diagnostics
73
97
WriteLine ( LogLevel . Error , format , args ) ;
74
98
}
75
99
100
+ /** Writes a fatal error message to the log. */
101
+ public static void Fatal ( object message )
102
+ {
103
+ WriteLine ( LogLevel . Fatal , message ) ;
104
+ }
105
+
76
106
/** Writes a fatal error message to the log. */
77
107
public static void Fatal ( string message )
78
108
{
@@ -91,6 +121,12 @@ namespace Uno.Diagnostics
91
121
WriteLine ( level , string . Format ( format , args ) ) ;
92
122
}
93
123
124
+ /** Writes a message to the log. */
125
+ public static void WriteLine ( LogLevel level , object message )
126
+ {
127
+ WriteLine ( level , message != null ? message . ToString ( ) : string . Empty ) ;
128
+ }
129
+
94
130
/** Writes a message to the log. */
95
131
public static void WriteLine ( LogLevel level , string message )
96
132
{
0 commit comments