Repository navigation
[class-parse] .jmod file support
#891
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,8 @@ public static void Warning (int verbosity, string format, params object[] args) | |
| log (TraceLevel.Warning, verbosity, format, args); | ||
| } | ||
|
|
||
| public static void Warning (int verbosity, string message) => Warning (verbosity, "{0}", message); | ||
|
|
||
| public static void Error (string format, params object[] args) | ||
| { | ||
| var log = OnLog; | ||
|
|
@@ -23,6 +25,8 @@ public static void Error (string format, params object[] args) | |
| log (TraceLevel.Error, 0, format, args); | ||
| } | ||
|
|
||
| public static void Error (string message) => Error ("{0}", message); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do these do? These should be equivalent:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jpobst: these overloads preserve sanity. :-) What do you expect to happen with: Console.WriteLine("{foo}");What happens -- which I hope is what you expect? -- is that What happens if you call You get a The TL/DR: is that providing only a |
||
|
|
||
| public static void Message (string format, params object[] args) | ||
| { | ||
| var log = OnLog; | ||
|
|
@@ -31,13 +35,17 @@ public static void Message (string format, params object[] args) | |
| log (TraceLevel.Info, 0, format, args); | ||
| } | ||
|
|
||
| public static void Message (string message) => Message ("{0}", message); | ||
|
|
||
| public static void Debug (string format, params object[] args) | ||
| { | ||
| var log = OnLog; | ||
| if (log == null) | ||
| return; | ||
| log (TraceLevel.Verbose, 0, format, args); | ||
| } | ||
|
|
||
| public static void Debug (string message) => Debug ("{0}", message); | ||
| } | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.