NET Logging Library
LogAttachment(LoggingLevel,String,String,Stream) Method



KellermanSoftware.NetLoggingLibrary Namespace > ILog Interface > LogAttachment Method : LogAttachment(LoggingLevel,String,String,Stream) Method
The logging level
The message to log with the attachment
The filename only for the attachment stream
A binary stream
Log an attachment to the BinaryFileTarget. If no binary target is attached, nothing will be logged
Syntax
Overloads Function LogAttachment( _
   ByVal level As LoggingLevel, _
   ByVal message As String, _
   ByVal attachmentName As String, _
   ByVal attachmentStream As Stream _
) As LogResponse
Dim instance As ILog
Dim level As LoggingLevel
Dim message As String
Dim attachmentName As String
Dim attachmentStream As Stream
Dim value As LogResponse
 
value = instance.LogAttachment(level, message, attachmentName, attachmentStream)

Parameters

level
The logging level
message
The message to log with the attachment
attachmentName
The filename only for the attachment stream
attachmentStream
A binary stream
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ILog Interface
ILog Members
Overload List