ExceptionFormatter.GetMessage Method
Get the formatted message to be logged.
Namespace: Microsoft.Practices.EnterpriseLibrary.Logging
Assembly: Microsoft.Practices.EnterpriseLibrary.Logging (in Microsoft.Practices.EnterpriseLibrary.Logging.dll)
Syntax
'Declaration
Public Function GetMessage ( _
exception As Exception _
) As String
public string GetMessage(
Exception exception
)
public:
String^ GetMessage(
Exception^ exception
)
public function GetMessage(
exception : Exception
) : String
Parameters
exception
Type: System.ExceptionThe exception object whose information should be written to log file.
Return Value
The formatted message.