Show / Hide Table of Contents

Class DefaultLogConfig

Configuration values for the built in rolling log file process.

Inheritance
System.Object
DefaultLogConfig
Implements
ICloudShareSyncConfig
Namespace: Cloud_ShareSync.Core.Configuration.Types
Assembly: Cloud-ShareSync.Core.Configuration.dll
Syntax
public class DefaultLogConfig : object, ICloudShareSyncConfig

Properties

| Improve this Doc View Source

FileName

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

| Improve this Doc View Source

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
Path.Join( , "log" )
| Improve this Doc View Source

LogLevels

Sets the log levels that should go into the rolling log file.

Declaration
public SupportedLogLevels LogLevels { get; set; }
Property Value
Type Description
SupportedLogLevels

Info
Warn
Error
Fatal

| Improve this Doc View Source

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

| Improve this Doc View Source

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 Source

ToString()

Returns the DefaultLogConfig as a json string.

Declaration
public override string ToString()
Returns
Type Description
System.String

Implements

ICloudShareSyncConfig
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
About Me | Open Source Acknowledgements | Security
☀
☾