Share via


LoggingExceptionHandler.WriteToLog Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Writes the specified log message using the Logging Application Block's Write(LogEntry) method.

Namespace:  Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging
Assembly:  Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging (in Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll)

Syntax

'Declaration
ProtectedOverridableSubWriteToLog ( _
    logMessageAs String, _
    exceptionDataAs IDictionary _
)
protectedvirtualvoidWriteToLog(
    string logMessage,
    IDictionary exceptionData
)
protected:
virtualvoidWriteToLog(
    String^ logMessage, 
    IDictionary^ exceptionData
)
protectedfunctionWriteToLog(
    logMessage : String, 
    exceptionData : IDictionary
)

Parameters

  • logMessage
    Type: System.String
    The message to write to the log.

See Also

LoggingExceptionHandler Class

Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.