Class DefaultLogConfig
Configuration values for the built in rolling log file process.
Inheritance
System.Object
DefaultLogConfig
Implements
Namespace: Cloud_ShareSync.Core.Configuration.Types
Assembly: Cloud-ShareSync.Core.Configuration.dll
Syntax
public class DefaultLogConfig : object, ICloudShareSyncConfig
Properties
| Improve this Doc View SourceFileName
The file name and extension for the primary rolling log file.
If RolloverCount is greater than 0 then logs will roll over and be renamed with the format "{FileName}.{LogNumber}.{Extension}" once the MaximumSize has been met.Declaration
public string FileName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | Cloud-ShareSync.log |
LogDirectory
The path, either relative or complete, to the directory where the rolling log files should be output.
Default value is the applications root directory.Declaration
public string LogDirectory { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
|
LogLevels
Sets the log levels that should go into the rolling log file.
Declaration
public SupportedLogLevels LogLevels { get; set; }
Property Value
| Type | Description |
|---|---|
| SupportedLogLevels |
MaximumSize
The maximum size, in megabytes, that each log should get to before rolling over into a new file.
Declaration
public int MaximumSize { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | 5 |
RolloverCount
The number of MaximumSize log files to keep.
Declaration
public int RolloverCount { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | 5 |
Methods
| Improve this Doc View SourceToString()
Returns the DefaultLogConfig as a json string.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |