NET Logging Library
LogFilePath Property (BaseFileTarget)



KellermanSoftware.NetLoggingLibrary.Targets Namespace > BaseFileTarget Class : LogFilePath Property

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 Property LogFilePath As String
Dim instance As BaseFileTarget
Dim value As String
 
instance.LogFilePath = value
 
value = instance.LogFilePath
public string LogFilePath {get; set;}
public:
property String^ LogFilePath {
   String^ get();
   void set (    String^ value);
}
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

BaseFileTarget Class
BaseFileTarget Members