diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2020-01-12 17:11:38 +0200 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2020-01-12 17:11:38 +0200 |
| commit | 457fbbf13a7ff3b1e477b4d3849c5d036ba2cff6 (patch) | |
| tree | 07b576dd3adef737b2ea6a855cd9bed1c4d7bb02 /Software/Visual_Studio/Tango.Logging | |
| parent | 5502a2d3f6ec945809da9b16b7dccdd3716a820e (diff) | |
| download | Tango-457fbbf13a7ff3b1e477b4d3849c5d036ba2cff6.tar.gz Tango-457fbbf13a7ff3b1e477b4d3849c5d036ba2cff6.zip | |
Comments to SessionFileLogger
Diffstat (limited to 'Software/Visual_Studio/Tango.Logging')
| -rw-r--r-- | Software/Visual_Studio/Tango.Logging/SessionFileLogger.cs | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/Software/Visual_Studio/Tango.Logging/SessionFileLogger.cs b/Software/Visual_Studio/Tango.Logging/SessionFileLogger.cs index da8079d41..079f7f7b5 100644 --- a/Software/Visual_Studio/Tango.Logging/SessionFileLogger.cs +++ b/Software/Visual_Studio/Tango.Logging/SessionFileLogger.cs @@ -17,12 +17,10 @@ namespace Tango.Logging #region Static Properties - public static String DefaultLogsFolder { get; private set; } - /// <summary> - /// Gets or sets the maximum file size limit. + /// Gets the default logs folder. /// </summary> - public static long MaxFileSizeLimit { get; set; } + public static String DefaultLogsFolder { get; private set; } #endregion @@ -30,12 +28,26 @@ namespace Tango.Logging public bool Enabled { get; set; } + /// <summary> + /// Folder is used for save file session logs + /// </summary> public String Folder { get; private set; } + /// <summary> + /// Full path of log file + /// </summary> public String LogFile { get; private set; } + /// <summary> + /// Gets the tag name which will be appended to the file. + /// </summary> public String Tag { get; private set; } + /// <summary> + /// Gets or sets the maximum file size limit. + /// </summary> + public long MaxFileSizeLimit { get; set; } + #endregion #region Constructors @@ -45,7 +57,7 @@ namespace Tango.Logging static SessionFileLogger() { DefaultLogsFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Twine", "Tango", "Logs", Path.GetFileNameWithoutExtension(AppDomain.CurrentDomain.FriendlyName), "Session"); - MaxFileSizeLimit = 1000000 * 10; //10 MB + } public SessionFileLogger(String folder, String tag) @@ -55,11 +67,11 @@ namespace Tango.Logging Directory.CreateDirectory(Folder); Enabled = true; _writeCount = 0; + MaxFileSizeLimit = 1000000 * 10; //10 MB } public SessionFileLogger() : this(DefaultLogsFolder, Path.GetFileNameWithoutExtension(AppDomain.CurrentDomain.FriendlyName)) { - } #endregion |
