LogPublisherPublish(MessageLevel, String, String, String, Exception) Method
Raises a log message with the provided data.
Namespace: Gemstone.DiagnosticsAssembly: Gemstone.Diagnostics (in Gemstone.Diagnostics.dll) Version: 1.0.128 -- Release Build+d9d157c80da59365061f9bf4a5d1ecd0f0496e1b
public void Publish(
MessageLevel level,
string? eventName,
string? message = null,
string? details = null,
Exception? exception = null
)
Public Sub Publish (
level As MessageLevel,
eventName As String,
Optional message As String = Nothing,
Optional details As String = Nothing,
Optional exception As Exception = Nothing
)
public:
void Publish(
MessageLevel level,
String^ eventName,
String^ message = nullptr,
String^ details = nullptr,
Exception^ exception = nullptr
)
function Publish(level, eventName, message, details, exception);
Parameters
- level MessageLevel
- the level of the message
- eventName String
- A short name about what this message is detailing. Typically this will be a few words.
- message String (Optional)
- A longer message than giving more specifics about the actual message.
Typically, this will be up to 1 line of text.
- details String (Optional)
- A long text field with the details of the message.
- exception Exception (Optional)
- An exception object if one is provided.