This class extends System.Diagnostics.Log to provide shorthand methods for logging/tracing messages at different levels.
More...
|
| static void | AddListener (ILogListener listener) |
| | Makes a TraceListener start receiving log messages. More...
|
| |
| static void | RemoveListener (ILogListener listener) |
| | Stops a specified TraceListener from receiving log messages. More...
|
| |
| static ReadOnlyCollection< ILogListener > | GetListeners () |
| | Gets all added TraceListeners. More...
|
| |
| static TraceSource | CreateSource (string name) |
| | Creates a new log source. More...
|
| |
| static TraceSource | CreateSource (string name, object owner) |
| | Creates a new owned log source. Note that any given object can only have one owned TraceSource. More...
|
| |
| static TraceSource | GetOwnedSource (object owner) |
| | Gets the source of a specified owner. More...
|
| |
| static void | RemoveSource (TraceSource source) |
| | Removes a previously Created Log from the list of sources. More...
|
| |
| static void | TraceInformation (this TraceSource trace, string message) |
| | Trace a message at level "Information" (LogEventType.Information). More...
|
| |
| static void | Debug (this TraceSource trace, string message, params object[] args) |
| | Trace a message at level "Debug" (LogEventType.Debug). More...
|
| |
| static void | Info (this TraceSource trace, Stopwatch timer, string message, params object[] args) |
| | Writes a message with the time measured by timer appended in the format [xx.x (m/u/n)s]. if timer is a TimerToken it will be disposed. Information level log message. More...
|
| |
| static void | Debug (this TraceSource trace, Stopwatch timer, string message, params object[] args) |
| | Writes a message with the time measured by timer appended in the format [xx.x (m/u/n)s]. if timer is a TimerToken it will be disposed. Debug level end message. More...
|
| |
| static void | Warning (this TraceSource trace, Stopwatch timer, string message, params object[] args) |
| | Writes a message with the time measured by timer appended in the format [xx.x (m/u/n)s]. if timer is a TimerToken it will be disposed. Warning level end message. More...
|
| |
| static void | Error (this TraceSource trace, Stopwatch timer, string message, params object[] args) |
| | Writes a message with the time measured by timer appended in the format [xx.x (m/u/n)s]. if timer is a TimerToken it will be disposed. Error level end message. More...
|
| |
| static void | Info (this TraceSource trace, TimeSpan elapsed, string message, params object[] args) |
| | Writes a message with the time appended in the format [xx.x (m/u/n)s]. if timer is a TimerToken it will be disposed. Information level log message. More...
|
| |
| static void | Debug (this TraceSource trace, TimeSpan elapsed, string message, params object[] args) |
| | Writes a message with the time appended in the format [xx.x (m/u/n)s]. if timer is a TimerToken it will be disposed. Debug level end message. More...
|
| |
| static void | Warning (this TraceSource trace, TimeSpan elapsed, string message, params object[] args) |
| | Writes a message with the time appended in the format [xx.x (m/u/n)s]. if timer is a TimerToken it will be disposed. Warning level end message. More...
|
| |
| static void | Error (this TraceSource trace, TimeSpan elapsed, string message, params object[] args) |
| | Writes a message with the time appended in the format [xx.x (m/u/n)s]. if timer is a TimerToken it will be disposed. Error level end message. More...
|
| |
| static void | Info (this TraceSource trace, string message, params object[] args) |
| | Trace a message at level "Information" (LogEventType.Information). More...
|
| |
| static void | Warning (this TraceSource trace, string message, params object[] args) |
| | Trace a message at level "Warning" (LogEventType.Warning). More...
|
| |
| static void | Error (this TraceSource trace, string message, params object[] args) |
| | Trace a message at level "Error" (LogEventType.Error). More...
|
| |
| static void | Debug (this TraceSource trace, Exception exception) |
| | Write exception details (including stack trace) to the trace at level "Debug" (LogEventType.Error). More...
|
| |
| static void | Error (this TraceSource trace, Exception exception) |
| | Write exception details (including stack trace) to the trace at level "Error" (LogEventType.Error). More...
|
| |
|
static void | Flush () |
| | Flushes all waiting log trace events.
|
| |
|
static void | StartSync () |
| | Puts the current log context into synchronous mode. All TraceSources will now wait for their trace events to be handled by all TraceListeners before returning.
|
| |
|
static void | StopSync () |
| | Ends synchronous mode. Must be called after .
|
| |
This class extends System.Diagnostics.Log to provide shorthand methods for logging/tracing messages at different levels.