ResettableFileTarget Class |
Namespace: BlackBerry.Workspaces.NlogExtensions
public class ResettableFileTarget : FileTarget
The ResettableFileTarget type exposes the following members.
Name | Description | |
---|---|---|
ResettableFileTarget | Initializes a new instance of the ResettableFileTarget class |
Name | Description | |
---|---|---|
DeleteToken |
Defines the token to look for indicating the log file should be reset.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
<configSections> <section name = "nlog" type="NLog.Config.ConfigSectionHandler, NLog"/> </configSections> <nlog autoReload="true" xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <extensions> <add assembly = "WorkspacesSdkCore" /> </extensions> <targets> <target name="logfile" xsi:type="ResettableFile" deleteToken="SomeDeleteToken" fileName="${basedir}/workspacessdk.log" layout="${message}" keepFileOpen="true" /> </targets> <rules> <logger name = "*" minlevel="Trace" writeTo="logfile"/> </rules> </nlog>