mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 05:05:05 +00:00
Tidying
This commit is contained in:
@@ -5,7 +5,7 @@ namespace ICD.Common.Utils
|
|||||||
public static partial class IcdEnvironment
|
public static partial class IcdEnvironment
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Enumeration to define the various runtime environments a SIMPL# module can run in.
|
/// Enumeration to define the various runtime environments a module can run in.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum eRuntimeEnvironment
|
public enum eRuntimeEnvironment
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ namespace ICD.Common.Utils
|
|||||||
#else
|
#else
|
||||||
System.Console.ForegroundColor = ConsoleColor.Yellow;
|
System.Console.ForegroundColor = ConsoleColor.Yellow;
|
||||||
System.Console.BackgroundColor = ConsoleColor.Red;
|
System.Console.BackgroundColor = ConsoleColor.Red;
|
||||||
System.Console.Error.WriteLine("{0}: {1}", ex.GetType().Name, message);
|
System.Console.Error.WriteLine("{0}: {1}", ex.GetType().Name, message);
|
||||||
System.Console.ResetColor();
|
System.Console.ResetColor();
|
||||||
System.Console.Error.WriteLine(ex.StackTrace);
|
System.Console.Error.WriteLine(ex.StackTrace);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
using Crestron.SimplSharp;
|
using Crestron.SimplSharp;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
using System;
|
using System;
|
||||||
using System.IO.Compression;
|
using System.IO.Compression;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using ICD.Common.Utils;
|
|||||||
namespace ICD.Common.Services.Logging
|
namespace ICD.Common.Services.Logging
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Log Entry Item
|
/// Log Entry Item
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public struct LogItem
|
public struct LogItem
|
||||||
{
|
{
|
||||||
@@ -17,18 +17,18 @@ namespace ICD.Common.Services.Logging
|
|||||||
#region Properties
|
#region Properties
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Accessor only for timestamp.
|
/// Accessor only for timestamp.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[PublicAPI]
|
[PublicAPI]
|
||||||
public DateTime Timestamp { get { return m_Timestamp; } }
|
public DateTime Timestamp { get { return m_Timestamp; } }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get/Set for severity level.
|
/// Get/Set for severity level.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public eSeverity Severity { get { return m_Severity; } }
|
public eSeverity Severity { get { return m_Severity; } }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get/Set for message string.
|
/// Get/Set for message string.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Message { get { return m_Message; } }
|
public string Message { get { return m_Message; } }
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ namespace ICD.Common.Services.Logging
|
|||||||
#region Constructors
|
#region Constructors
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates a new LogItem object with the specified values.
|
/// Creates a new LogItem object with the specified values.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="severity">Severity Level, between 0 and 7</param>
|
/// <param name="severity">Severity Level, between 0 and 7</param>
|
||||||
/// <param name="message">Error message text</param>
|
/// <param name="message">Error message text</param>
|
||||||
@@ -53,7 +53,7 @@ namespace ICD.Common.Services.Logging
|
|||||||
#region Methods
|
#region Methods
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Return the text format to send to Fusion
|
/// Return the text format to send to Fusion
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>text format for fusion, including timestamp, severity, and message</returns>
|
/// <returns>text format for fusion, including timestamp, severity, and message</returns>
|
||||||
[PublicAPI]
|
[PublicAPI]
|
||||||
@@ -71,7 +71,7 @@ namespace ICD.Common.Services.Logging
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Implementing default equality.
|
/// Implementing default equality.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a1"></param>
|
/// <param name="a1"></param>
|
||||||
/// <param name="a2"></param>
|
/// <param name="a2"></param>
|
||||||
@@ -82,7 +82,7 @@ namespace ICD.Common.Services.Logging
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Implementing default inequality.
|
/// Implementing default inequality.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a1"></param>
|
/// <param name="a1"></param>
|
||||||
/// <param name="a2"></param>
|
/// <param name="a2"></param>
|
||||||
@@ -93,7 +93,7 @@ namespace ICD.Common.Services.Logging
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if this instance is equal to the given object.
|
/// Returns true if this instance is equal to the given object.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other"></param>
|
/// <param name="other"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
|||||||
Reference in New Issue
Block a user