mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 21:24:58 +00:00
refactor: Removing unused code
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Text;
|
|
||||||
using ICD.Common.Properties;
|
using ICD.Common.Properties;
|
||||||
|
|
||||||
namespace ICD.Common.Utils.Services.Logging
|
namespace ICD.Common.Utils.Services.Logging
|
||||||
@@ -21,11 +20,6 @@ namespace ICD.Common.Utils.Services.Logging
|
|||||||
[PublicAPI]
|
[PublicAPI]
|
||||||
public DateTime Timestamp { get { return m_Timestamp; } }
|
public DateTime Timestamp { get { return m_Timestamp; } }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets the log time in local time.
|
|
||||||
/// </summary>
|
|
||||||
public DateTime LocalTimestamp { get { return Timestamp.ToLocalTime(); } }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get/Set for severity level.
|
/// Get/Set for severity level.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -56,24 +50,6 @@ namespace ICD.Common.Utils.Services.Logging
|
|||||||
|
|
||||||
#region Methods
|
#region Methods
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Return the text format to send to Fusion
|
|
||||||
/// </summary>
|
|
||||||
/// <returns>text format for fusion, including timestamp, severity, and message</returns>
|
|
||||||
[PublicAPI]
|
|
||||||
public string GetFusionLogText()
|
|
||||||
{
|
|
||||||
StringBuilder s = new StringBuilder();
|
|
||||||
|
|
||||||
s.Append(Timestamp.ToString("yyyyMMddHHmmss"));
|
|
||||||
s.Append("||");
|
|
||||||
s.Append((int)Severity);
|
|
||||||
s.Append("||");
|
|
||||||
s.Append(Message);
|
|
||||||
|
|
||||||
return s.ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Implementing default equality.
|
/// Implementing default equality.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user