NET Logging Library
FileTarget Class Members
Properties  Methods 


KellermanSoftware.NetLoggingLibrary.Targets Namespace : FileTarget Class

The following tables list the members exposed by FileTarget.

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 (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseFileTarget)
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 (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseFileTarget)
Public Property The maximum file size in bytes when the FileRollingStyle is ArchiveSize (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseFileTarget)
Public PropertyWhat to do with old entries. Options are NoRolling, ArchiveMaxLogEntries, ArchiveSize, ArchiveTimePeriod, DiscardMaxLogEntries
The default is DiscardMaxLogEntries (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseFileTarget)
Public Property How often to archive log files when the FileRollingStyle is ArchiveTimePeriod (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseFileTarget)
Public Property Footer for the file (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseFileTarget)
Public Property Header for the file (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseFileTarget)
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

(Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseFileTarget)
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 (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseFileTarget)
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 (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseFileTarget)
Protected PropertyOverridden.  Return the extension for the file  
Protected Property (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseFileTarget)
Top
Public Methods
 NameDescription
Public Method Clear all archive files (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseFileTarget)
Public Method Clear the file log (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseFileTarget)
Public Method Close the connection to the file (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseFileTarget)
Public MethodOverloaded.  Clear asynchronous queue and close connections (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Public Method Returns true if the file exists (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseFileTarget)
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 (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseFileTarget)
Public Method Log an entry to a file (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseFileTarget)
Top
Protected Methods
 NameDescription
Protected Method Post processing of formatting a message for each field (Inherited from KellermanSoftware.NetLoggingLibrary.Targets.BaseTarget)
Protected MethodOverridden.  Get the log line  
Top
See Also

Reference

FileTarget Class
KellermanSoftware.NetLoggingLibrary.Targets Namespace