NET Logging Library
BaseFileTarget Class Members
Properties  Methods 


KellermanSoftware.NetLoggingLibrary.Targets Namespace : BaseFileTarget Class

The following tables list the members exposed by BaseFileTarget.

Public Constructors
 NameDescription
Public ConstructorOverloaded.   
Top
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
Public Methods
 NameDescription
Public Method Clear all archive files  
Public MethodOverridden.  Clear the file log  
Public Method Close the connection to the file  
Public MethodOverloaded.  Clear asynchronous queue and close connections (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public Method Returns true if the file exists  
Public Method Wait to write out buffered and asynchronous targets (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public Method Format a message with all selected options for the target (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public Method Get all the bytes in a file  
Public MethodOverridden.  Log an entry to a file  
Top
Protected Methods
 NameDescription
Protected Method Post processing of formatting a message for each field (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Protected Method Process the current LogEntry and build the current line to be written to the log file.  
Top
See Also

Reference

BaseFileTarget Class
KellermanSoftware.NetLoggingLibrary.Targets Namespace