Click or drag to resize

Logger Methods

The Logger type exposes the following members.

Methods
  Name Description
Public method Static member AppendStackMessages(LogStackMessages) Temporarily appends data to the thread's stack so the data can be propagated to any messages generated on this thread. Be sure to call Dispose on the returned object to remove this from the stack.
Public method Static member AppendStackMessages(String, String) Temporarily appends data to the thread's stack so the data can be propagated to any messages generated on this thread. Be sure to call Dispose on the returned object to remove this from the stack.
Public method Static member CreatePublisher Looks up the type of the log source
Public method Static member CreateSubscriber Creates a LogSubscriber
Public method Static member GetStackMessages Searches the current stack frame for all related messages that will be published with this message.
Public method Static member OverrideSuppressLogMessages Sets a flag that will allow log messages to be raised again. Remember to dispose of the callback to remove this override.
Public method Static member SuppressFirstChanceExceptionLogMessages Sets a flag that will prevent First Chance Exception log messages from being raised on this thread. Remember to dispose of the callback to remove this suppression.
Public method Static member SuppressLogMessages Sets a flag that will prevent log messages from being raised on this thread. Remember to dispose of the callback to remove this suppression.
Public method Static member SwallowException Logs that a first chance exception was intentionally not handled for the provided reason. In the LogFileViewer it will filter messages differently if it was indicated that they were swallowed.
Top
See Also