NET Logging Library
BaseFileTarget Class Properties


KellermanSoftware.NetLoggingLibrary.Targets Namespace : BaseFileTarget Class

For a list of all members of this type, see BaseFileTarget members.

Public Properties
 NameDescription
Public Property Used internally for performance. Returns true if there is any filter defined for this target. (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public Property If specified, only log for a specific assembly name It is possible to use multiple assemblies delimited by a comma and the asterisk wildcard. (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public Property When a logging target is wrapped by a BufferedWrapper, this is how often messages are committed (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public Property If specified, only log for a specific class name It is possible to use multiple classes delimited by a comma and the asterisk wildcard. (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public Property The current LogEntry we're working with  
Public PropertyThe date format for the LogTime variable.
See the Date Format topic in the Basic Tasks Section of the Help File (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public Property The maximum number of files to keep when the FileRollingStyle is ArchivingMaxLogEntries, ArchiveSize, or ArchiveTimePeriod  
Public Property The maximum file size in bytes when the FileRollingStyle is ArchiveSize  
Public PropertyWhat to do with old entries. Options are NoRolling, ArchiveMaxLogEntries, ArchiveSize, ArchiveTimePeriod, DiscardMaxLogEntries
The default is DiscardMaxLogEntries  
Public Property How often to archive log files when the FileRollingStyle is ArchiveTimePeriod  
Public Property Footer for the file  
Public Property Header for the file  
Public Property The number of messages that have been logged for this logger (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public 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

 
Public Property If specified, logging will only occur for the specific machine name It is possible to use multiple machines delimited by a comma and the asterisk wildcard. (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public Property The maximum entries before discarding old entries. Defaults to 10,000  
Public PropertyWhat to output in the log.
See the Message Format topic in the Basic Tasks Section of the Help File (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public Property If specified, only log for a specific method name It is possible to use multiple methods delimited by a comma and the asterisk wildcard. (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public Property The minimum logging level to log a message (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public Property Defines which mode to use for the target; Synchronous, Buffered, or Asynchronous. The default is Synchronous. (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public Property The name of the logger (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public Property If specified, only log for a specific namespace. It is possible to use multiple namespaces delimited by a comma and the asterisk wildcard. (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public Property If specified, logging will only occur for the thread id or thread name specified It is possible to use multiple thread names delimited by a comma and the asterisk wildcard. (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public Property If specified, logging will only occur for the specific user name It is possible to use multiple users delimited by a comma and the asterisk wildcard. (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Top
Protected Properties
 NameDescription
Protected Property The current line that we're working with  
Protected Property The extension of the custom log file.  
Protected Property  
Top
See Also

Reference

BaseFileTarget Class
KellermanSoftware.NetLoggingLibrary.Targets Namespace