NET Logging Library
BinaryFileTarget Constructor(String)



KellermanSoftware.NetLoggingLibrary.Targets Namespace > BinaryFileTarget Class > BinaryFileTarget Constructor : BinaryFileTarget Constructor(String)

Specify the log file path.

You can specify dynamic paths using these constructs:

Data Directory
http
|DataDirectory|\mylogfile.txt

Server.MapPath for ASP.NET, Web Services, and WCF
http
Server.MapPath("~/App_Data")\mylogfile.txt

Special Folders
http
ApplicationData\mylogfile.txt
CommonApplicationData\mylogfile.txt
LocalApplicationData\mylogfile.txt
MyDocuments\mylogfile.txt

Syntax
Public Function New( _
   ByVal filePath As String _
)
Dim filePath As String
 
Dim instance As New BinaryFileTarget(filePath)
public BinaryFileTarget( 
   string filePath
)
public:
BinaryFileTarget( 
   String^ filePath
)

Parameters

filePath
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

BinaryFileTarget Class
BinaryFileTarget Members
Overload List