Logger Class

Manages the collection and reporting of logging information in a system.

Definition

Namespace: Gemstone.Diagnostics
Assembly: Gemstone.Diagnostics (in Gemstone.Diagnostics.dll) Version: 1.0.184 -- Release Build+94f913044c8af48b1fd7b970570804d1daa56ae3
public static class Logger
Inheritance
Object    Logger

Properties

FirstChanceExceptionBurstLimit Gets or sets the maximum number of first chance exception messages that can be logged in a burst.
FirstChanceExceptionRate Gets or sets the maximum expected rate at which first change exception messages are logged for rate limiting.
LogFirstChanceExceptions Gets or sets the flag that determines if first chance exceptions are logged.
ShouldSuppressFirstChanceLogMessages Gets if First Chance Exception Log Messages should be suppressed.
ShouldSuppressLogMessages Gets if Log Messages should be suppressed.
SwallowedExceptionBurstLimit Gets or sets the maximum number of swallowed exception messages that can be logged in a burst.
SwallowedExceptionRate Gets or sets the maximum expected rate at which swallowed exception messages are logged for rate limiting.

Methods

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.
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.
CreatePublisher Looks up the type of the log source
CreateSubscriber Creates a LogSubscriber
GetStackMessages Searches the current stack frame for all related messages that will be published with this message.
OverrideSuppressLogMessages Sets a flag that will allow log messages to be raised again. Remember to dispose of the callback to remove this override.
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.
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.
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.

Fields

Console The default console based log subscriber.
FileWriter The default file based log writer.

See Also