aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Logging/SessionFileLogger.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.Logging/SessionFileLogger.cs')
-rw-r--r--Software/Visual_Studio/Tango.Logging/SessionFileLogger.cs24
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