diff --git a/.vs/Stone_Red-C-Sharp-Utilities/DesignTimeBuild/.dtbcache.v2 b/.vs/Stone_Red-C-Sharp-Utilities/DesignTimeBuild/.dtbcache.v2
index 0dbf28e..9849f40 100644
Binary files a/.vs/Stone_Red-C-Sharp-Utilities/DesignTimeBuild/.dtbcache.v2 and b/.vs/Stone_Red-C-Sharp-Utilities/DesignTimeBuild/.dtbcache.v2 differ
diff --git a/.vs/Stone_Red-C-Sharp-Utilities/v16/.suo b/.vs/Stone_Red-C-Sharp-Utilities/v16/.suo
index 29ddaa9..4f74ee9 100644
Binary files a/.vs/Stone_Red-C-Sharp-Utilities/v16/.suo and b/.vs/Stone_Red-C-Sharp-Utilities/v16/.suo differ
diff --git a/Stone_Red-C-Sharp-Utilities/Stone_Red_Utilities.cs b/Stone_Red-C-Sharp-Utilities/ArrListExtentions.cs
similarity index 51%
rename from Stone_Red-C-Sharp-Utilities/Stone_Red_Utilities.cs
rename to Stone_Red-C-Sharp-Utilities/ArrListExtentions.cs
index 6b95d1e..c1891f0 100644
--- a/Stone_Red-C-Sharp-Utilities/Stone_Red_Utilities.cs
+++ b/Stone_Red-C-Sharp-Utilities/ArrListExtentions.cs
@@ -157,151 +157,4 @@ namespace Stone_Red_Utilities.ArrListExtentions
Console.WriteLine();
}
}
-}
-
-namespace Stone_Red_Utilities.BoolExtentions
-{
- ///
- /// Extentions
- ///
- public static class BoolExt
- {
- ///
- /// Sets value to true if input is true. If input is false the value will not change.
- ///
- ///
- ///
- public static void OneWayTrue(this ref bool bol, bool input)
- {
- if (bol == false && input)
- bol = true;
- }
-
- ///
- /// Sets value to false if input is false. If input is true the value will not change.
- ///
- ///
- ///
- public static void OneWayFalse(this ref bool bol, bool input)
- {
- if (bol == true && !input)
- bol = false;
- }
- }
-}
-
-namespace Stone_Red_Utilities.ColorConsole
-{
- ///
- /// Console Extentions
- ///
- public static class ConsoleExt
- {
- ///
- /// Writes the text representation of the specified object to the standard output stream.
- ///
- ///
- ///
- public static void Write(object value, ConsoleColor color)
- {
- lock (Console.Out)
- {
- ConsoleColor oldColor = Console.ForegroundColor;
- Console.ForegroundColor = color;
- Console.Write(value);
- Console.ForegroundColor = oldColor;
- }
- }
-
- ///
- /// Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
- ///
- ///
- ///
- public static void WriteLine(object value, ConsoleColor color)
- {
- lock (Console.Out)
- {
- ConsoleColor oldColor = Console.ForegroundColor;
- Console.ForegroundColor = color;
- Console.WriteLine(value);
- Console.ForegroundColor = oldColor;
- }
- }
- }
-}
-
-namespace Stone_Red_Utilities.StringExtentions
-{
- ///
- /// Extentions
- ///
- public static class StringExt
- {
- ///
- /// Determines whether this instance and another specified object have the same value regardless of upper and lower case.
- ///
- ///
- ///
- ///
- public static bool EqualsIgnoreCase(this string str, string value)
- {
- return str.ToLower().Equals(value.ToLower());
- }
-
- ///
- /// Determines whether this instance and another specified object have the same value regardless of spaces.
- ///
- ///
- ///
- ///
- public static bool EqualsIgnoreSpaces(this string str, string value)
- {
- return str.Replace(" ", string.Empty).Equals(value.Replace(" ", string.Empty));
- }
-
- ///
- /// Determines whether this instance and another specified object have the same value regardless of upper and lower case and spaces.
- ///
- ///
- ///
- ///
- public static bool EqualsIgnoreSpacesAndCase(this string str, string value)
- {
- return str.Replace(" ", string.Empty).ToLower().Equals(value.Replace(" ", string.Empty).ToLower());
- }
-
- ///
- /// Removes all invalid chars from file name
- ///
- ///
- ///
- ///
- public static string ToFileName(this string str, bool allowSpaces = false)
- {
- char[] invalidChars = Path.GetInvalidFileNameChars();
-
- if (!allowSpaces)
- str = str.Replace(" ", string.Empty);
-
- foreach (var item in invalidChars)
- {
- str = str.Replace(item.ToString(), string.Empty);
- }
-
- var normalizedString = str.Normalize(NormalizationForm.FormD);
- var stringBuilder = new StringBuilder();
-
- foreach (var c in normalizedString)
- {
- var unicodeCategory = CharUnicodeInfo.GetUnicodeCategory(c);
- if (unicodeCategory != UnicodeCategory.NonSpacingMark)
- {
- stringBuilder.Append(c);
- }
- }
-
- return stringBuilder.ToString().Normalize(NormalizationForm.FormC);
- }
- }
}
\ No newline at end of file
diff --git a/Stone_Red-C-Sharp-Utilities/BoolExtentions.cs b/Stone_Red-C-Sharp-Utilities/BoolExtentions.cs
new file mode 100644
index 0000000..301d883
--- /dev/null
+++ b/Stone_Red-C-Sharp-Utilities/BoolExtentions.cs
@@ -0,0 +1,30 @@
+namespace Stone_Red_Utilities.BoolExtentions
+{
+ ///
+ /// Extentions
+ ///
+ public static class BoolExt
+ {
+ ///
+ /// Sets value to true if input is true. If input is false the value will not change.
+ ///
+ ///
+ ///
+ public static void OneWayTrue(this ref bool bol, bool input)
+ {
+ if (bol == false && input)
+ bol = true;
+ }
+
+ ///
+ /// Sets value to false if input is false. If input is true the value will not change.
+ ///
+ ///
+ ///
+ public static void OneWayFalse(this ref bool bol, bool input)
+ {
+ if (bol == true && !input)
+ bol = false;
+ }
+ }
+}
\ No newline at end of file
diff --git a/Stone_Red-C-Sharp-Utilities/ConsoleExtentions.cs b/Stone_Red-C-Sharp-Utilities/ConsoleExtentions.cs
new file mode 100644
index 0000000..9a23299
--- /dev/null
+++ b/Stone_Red-C-Sharp-Utilities/ConsoleExtentions.cs
@@ -0,0 +1,75 @@
+using System;
+
+namespace Stone_Red_Utilities.ConsoleExtentions
+{
+ ///
+ /// Console Extentions
+ ///
+ public static class ConsoleExt
+ {
+ ///
+ /// Writes the text representation of the specified object to the standard output stream.
+ ///
+ ///
+ ///
+ public static void Write(object value, ConsoleColor color)
+ {
+ lock (Console.Out)
+ {
+ ConsoleColor oldColor = Console.ForegroundColor;
+ Console.ForegroundColor = color;
+ Console.Write(value);
+ Console.ForegroundColor = oldColor;
+ }
+ }
+
+ ///
+ /// Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
+ ///
+ ///
+ ///
+ public static void WriteLine(object value, ConsoleColor color)
+ {
+ lock (Console.Out)
+ {
+ ConsoleColor oldColor = Console.ForegroundColor;
+ Console.ForegroundColor = color;
+ Console.WriteLine(value);
+ Console.ForegroundColor = oldColor;
+ }
+ }
+
+ ///
+ /// Suspends execution until the user presses a key
+ ///
+ ///
+ ///
+ public static void Pause(bool enterKeyOnly = false, string customMessage = null)
+ {
+ if (customMessage is null)
+ {
+ if (enterKeyOnly)
+ {
+ Console.WriteLine("Press ENTER to continue.");
+ }
+ else
+ {
+ Console.WriteLine("Press any key to continue.");
+ }
+ }
+ else
+ {
+ Console.WriteLine(customMessage);
+ }
+
+ if (enterKeyOnly)
+ {
+ Console.ReadLine();
+ }
+ else
+ {
+ Console.ReadKey();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/Stone_Red-C-Sharp-Utilities/Logging.cs b/Stone_Red-C-Sharp-Utilities/Logging.cs
new file mode 100644
index 0000000..015ea8e
--- /dev/null
+++ b/Stone_Red-C-Sharp-Utilities/Logging.cs
@@ -0,0 +1,238 @@
+using System;
+using System.Diagnostics;
+using System.IO;
+using System.Runtime.CompilerServices;
+using Stone_Red_Utilities.ConsoleExtentions;
+
+namespace Stone_Red_Utilities.Logging
+{
+ ///
+ /// Specifies the severity of the log target.
+ ///
+ public enum LogTarget
+ {
+ ///
+ /// Writes log to console
+ ///
+ Console,
+
+ ///
+ /// Writes log to debug console
+ ///
+ DebugConsole,
+
+ ///
+ /// Writes log to file
+ ///
+ File,
+
+ ///
+ /// Writes log to console and file
+ ///
+ ConsoleAndFile,
+
+ ///
+ /// Writes log to debug console and file
+ ///
+ DebugAndFile,
+
+ ///
+ /// Writes log to console debug console and file
+ ///
+ All
+ }
+
+ ///
+ /// Specifies the severity of the log message.
+ ///
+ public enum LogSeverity
+ {
+ ///
+ /// Logs that contain the most detailed messages.
+ ///
+ Debug,
+
+ ///
+ /// Logs that track the general flow of the application.
+ ///
+ Info,
+
+ ///
+ /// Logs that highlight an abnormal activity in the flow of execution.
+ ///
+ Warning,
+
+ ///
+ /// Logs that highlight when the flow of execution is stopped due to a failure.
+ ///
+ Error,
+
+ ///
+ /// Logs that contain the most severe level of error. This type of error indicate that immediate attention may be required.
+ ///
+ Fatal
+ }
+
+ ///
+ /// Class used for logging
+ ///
+ public class Logger
+ {
+ private readonly string logPath;
+ private readonly LogTarget logTarget;
+
+ ///
+ /// Format that is used when logging to the console
+ ///
+ public string ConsoleLogFormat { get; set; }
+
+ ///
+ /// Format that is used when logging to the debug console
+ ///
+ public string DebugConsoleLogFormat { get; set; }
+
+ ///
+ /// Format that is used when logging to a file
+ ///
+ public string FileLogFormat { get; set; }
+
+ ///
+ /// Initializes the logger with the default format
+ ///
+ ///
+ ///
+ ///
+ public Logger(LogTarget logTarg = LogTarget.Console, string file = null, string defaultFormat = "{:HH:mm:ss} | {,-7} | {,-15} | {}")
+ {
+ if (logTarg == LogTarget.ConsoleAndFile || logTarg == LogTarget.DebugAndFile || logTarg == LogTarget.File || logTarg == LogTarget.All)
+ logPath = file ?? throw new ArgumentNullException($"file can't be null!");
+
+ logTarget = logTarg;
+ ConsoleLogFormat = defaultFormat;
+ DebugConsoleLogFormat = defaultFormat;
+ FileLogFormat = defaultFormat;
+ }
+
+ ///
+ /// Initializes the logger with the default format
+ ///
+ ///
+ ///
+ public Logger(LogTarget logTarg = LogTarget.Console, string defaultFormat = "{} | {,-7} | {,-15} | {}")
+ {
+ if (logTarg == LogTarget.ConsoleAndFile || logTarg == LogTarget.DebugAndFile || logTarg == LogTarget.File || logTarg == LogTarget.All)
+ throw new ArgumentNullException($"file can't be null!");
+
+ logTarget = logTarg;
+ ConsoleLogFormat = defaultFormat;
+ DebugConsoleLogFormat = defaultFormat;
+ FileLogFormat = defaultFormat;
+ }
+
+ ///
+ /// Log the message to the specified output
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void Log(string message, string source, LogSeverity logSeverity = LogSeverity.Info, [CallerMemberName] string memberName = "", [CallerFilePath] string sourceFilePath = "", [CallerLineNumber] int sourceLineNumber = 0)
+ {
+ WriteLog(message, source, logSeverity, memberName, sourceFilePath, sourceLineNumber);
+ }
+
+ ///
+ /// Log the message to the specified output when the condition is met
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void LogIf(bool condition, string message, string source, LogSeverity logSeverity = LogSeverity.Info, [CallerMemberName] string memberName = "", [CallerFilePath] string sourceFilePath = "", [CallerLineNumber] int sourceLineNumber = 0)
+ {
+ if (condition)
+ WriteLog(message, source, logSeverity, memberName, sourceFilePath, sourceLineNumber);
+ }
+
+ ///
+ /// Clears log file
+ ///
+ public void ClearLogFile()
+ {
+ if (File.Exists(logPath))
+ File.WriteAllText(logPath, string.Empty);
+ }
+
+ private void WriteLog(string message, string source, LogSeverity logSeverity, string memberName = "", string sourceFilePath = "", int sourceLineNumber = 0)
+ {
+ string consoleOutput = GetFormattedString(ConsoleLogFormat, logSeverity, source, message, memberName, sourceFilePath, sourceLineNumber);
+ string debugOutput = GetFormattedString(DebugConsoleLogFormat, logSeverity, source, message, memberName, sourceFilePath, sourceLineNumber);
+ string fileOutput = GetFormattedString(FileLogFormat, logSeverity, source, message, memberName, sourceFilePath, sourceLineNumber);
+
+ switch (logTarget)
+ {
+ case LogTarget.Console:
+ ConsoleExt.WriteLine(consoleOutput, GetColor(logSeverity));
+ break;
+
+ case LogTarget.DebugConsole:
+ Debug.WriteLine(debugOutput);
+ break;
+
+ case LogTarget.File:
+ File.AppendAllLines(logPath, new[] { fileOutput });
+ break;
+
+ case LogTarget.ConsoleAndFile:
+ ConsoleExt.WriteLine(consoleOutput, GetColor(logSeverity));
+ File.AppendAllLines(logPath, new[] { fileOutput });
+ break;
+
+ case LogTarget.DebugAndFile:
+ Debug.WriteLine(debugOutput);
+ File.AppendAllLines(logPath, new[] { fileOutput });
+ break;
+
+ case LogTarget.All:
+ Debug.WriteLine(debugOutput);
+ ConsoleExt.WriteLine(consoleOutput, GetColor(logSeverity));
+ File.AppendAllLines(logPath, new[] { fileOutput });
+ break;
+
+ default:
+ throw new ArgumentException("Log target type not valid!");
+ }
+ }
+
+ private ConsoleColor GetColor(LogSeverity logSeverity)
+ {
+ return logSeverity switch
+ {
+ LogSeverity.Fatal => ConsoleColor.DarkRed,
+ LogSeverity.Error => ConsoleColor.Red,
+ LogSeverity.Warning => ConsoleColor.DarkYellow,
+ LogSeverity.Info => ConsoleColor.White,
+ _ => ConsoleColor.DarkGray,
+ };
+ }
+
+ private string GetFormattedString(string format, LogSeverity logSeverity, string source, string message, string memberName = "", string sourceFilePath = "", int sourceLineNumber = 0)
+ {
+ format = format
+ .Replace("", "0")
+ .Replace("", "1")
+ .Replace("", "2")
+ .Replace("", "3")
+ .Replace("", "4")
+ .Replace("", "5")
+ .Replace("", "6");
+
+ return string.Format(format, DateTime.Now, logSeverity, sourceLineNumber, sourceFilePath, memberName, source, message);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Stone_Red-C-Sharp-Utilities/Stone_Red-C-Sharp-Utilities.xml b/Stone_Red-C-Sharp-Utilities/Stone_Red-C-Sharp-Utilities.xml
index 157fc12..e6c9faf 100644
--- a/Stone_Red-C-Sharp-Utilities/Stone_Red-C-Sharp-Utilities.xml
+++ b/Stone_Red-C-Sharp-Utilities/Stone_Red-C-Sharp-Utilities.xml
@@ -77,25 +77,153 @@
-
+
Console Extentions
-
+
Writes the text representation of the specified object to the standard output stream.
-
+
Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
+
+
+ Specifies the severity of the log target.
+
+
+
+
+ Writes log to console
+
+
+
+
+ Writes log to debug console
+
+
+
+
+ Writes log to file
+
+
+
+
+ Writes log to console and file
+
+
+
+
+ Writes log to debug console and file
+
+
+
+
+ Writes log to console debug console and file
+
+
+
+
+ Specifies the severity of the log message.
+
+
+
+
+ Logs that contain the most detailed messages.
+
+
+
+
+ Logs that track the general flow of the application.
+
+
+
+
+ Logs that highlight an abnormal activity in the flow of execution.
+
+
+
+
+ Logs that highlight when the flow of execution is stopped due to a failure.
+
+
+
+
+ Logs that contain the most severe level of error. This type of error indicate that immediate attention may be required.
+
+
+
+
+ Class used for logging
+
+
+
+
+ Format that is used when logging to the console
+
+
+
+
+ Format that is used when logging to the debug console
+
+
+
+
+ Format that is used when logging to a file
+
+
+
+
+ Initializes the logger with the default format
+
+
+
+
+
+
+
+ Initializes the logger with the default format
+
+
+
+
+
+
+ Log the message to the specified output
+
+
+
+
+
+
+
+
+
+
+ Log the message to the specified output when the condition is met
+
+
+
+
+
+
+
+
+
+
+
+ Clears log file
+
+
Extentions
@@ -133,5 +261,22 @@
+
+
+ Truncates a string to the specified length.
+
+
+
+
+
+
+
+ Truncates a string to the specified length.
+
+
+
+
+
+
diff --git a/Stone_Red-C-Sharp-Utilities/StringExtentions.cs b/Stone_Red-C-Sharp-Utilities/StringExtentions.cs
new file mode 100644
index 0000000..0092afc
--- /dev/null
+++ b/Stone_Red-C-Sharp-Utilities/StringExtentions.cs
@@ -0,0 +1,118 @@
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Text.RegularExpressions;
+
+namespace Stone_Red_Utilities.StringExtentions
+{
+ ///
+ /// Extentions
+ ///
+ public static class StringExt
+ {
+ ///
+ /// Determines whether this instance and another specified object have the same value regardless of upper and lower case.
+ ///
+ ///
+ ///
+ ///
+ public static bool EqualsIgnoreCase(this string str, string value)
+ {
+ return str.ToLower().Equals(value.ToLower());
+ }
+
+ ///
+ /// Determines whether this instance and another specified object have the same value regardless of spaces.
+ ///
+ ///
+ ///
+ ///
+ public static bool EqualsIgnoreSpaces(this string str, string value)
+ {
+ return str.Replace(" ", string.Empty).Equals(value.Replace(" ", string.Empty));
+ }
+
+ ///
+ /// Determines whether this instance and another specified object have the same value regardless of upper and lower case and spaces.
+ ///
+ ///
+ ///
+ ///
+ public static bool EqualsIgnoreSpacesAndCase(this string str, string value)
+ {
+ return str.Replace(" ", string.Empty).ToLower().Equals(value.Replace(" ", string.Empty).ToLower());
+ }
+
+ ///
+ /// Removes all invalid chars from file name
+ ///
+ ///
+ ///
+ ///
+ public static string ToFileName(this string str, bool allowSpaces = false)
+ {
+ char[] invalidChars = Path.GetInvalidFileNameChars();
+
+ if (!allowSpaces)
+ str = str.Replace(" ", string.Empty);
+
+ foreach (var item in invalidChars)
+ {
+ str = str.Replace(item.ToString(), string.Empty);
+ }
+
+ var normalizedString = str.Normalize(NormalizationForm.FormD);
+ var stringBuilder = new StringBuilder();
+
+ foreach (var c in normalizedString)
+ {
+ var unicodeCategory = CharUnicodeInfo.GetUnicodeCategory(c);
+ if (unicodeCategory != UnicodeCategory.NonSpacingMark)
+ {
+ stringBuilder.Append(c);
+ }
+ }
+
+ return stringBuilder.ToString().Normalize(NormalizationForm.FormC);
+ }
+
+ ///
+ /// Truncates a string to the specified length.
+ ///
+ ///
+ ///
+ ///
+ public static string Truncate(this string str, int length)
+ {
+ if (str.Length > length && length > 0)
+ return str.Substring(0, length);
+
+ return str;
+ }
+
+ ///
+ /// Truncates a string to the specified length.
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static string Truncate(this string str, int length, bool ellipsis)
+ {
+ if (str.Length > length && length > 0)
+ if (ellipsis)
+ {
+ return $"{str.Substring(0, length - 3)}...";
+ }
+ else
+ {
+ return str.Substring(0, length);
+ }
+
+ return str;
+ }
+ }
+}
\ No newline at end of file
diff --git a/Stone_Red-C-Sharp-Utilities/bin/Debug/Stone_Red-C-Sharp-Utilities.1.0.0.2.nupkg b/Stone_Red-C-Sharp-Utilities/bin/Debug/Stone_Red-C-Sharp-Utilities.1.0.0.2.nupkg
index 845e162..626233a 100644
Binary files a/Stone_Red-C-Sharp-Utilities/bin/Debug/Stone_Red-C-Sharp-Utilities.1.0.0.2.nupkg and b/Stone_Red-C-Sharp-Utilities/bin/Debug/Stone_Red-C-Sharp-Utilities.1.0.0.2.nupkg differ
diff --git a/Stone_Red-C-Sharp-Utilities/bin/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.dll b/Stone_Red-C-Sharp-Utilities/bin/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.dll
index 1b845a8..690f138 100644
Binary files a/Stone_Red-C-Sharp-Utilities/bin/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.dll and b/Stone_Red-C-Sharp-Utilities/bin/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.dll differ
diff --git a/Stone_Red-C-Sharp-Utilities/bin/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.pdb b/Stone_Red-C-Sharp-Utilities/bin/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.pdb
index 2e76cf3..eff74b9 100644
Binary files a/Stone_Red-C-Sharp-Utilities/bin/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.pdb and b/Stone_Red-C-Sharp-Utilities/bin/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.pdb differ
diff --git a/Stone_Red-C-Sharp-Utilities/bin/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.xml b/Stone_Red-C-Sharp-Utilities/bin/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.xml
index 157fc12..e6c9faf 100644
--- a/Stone_Red-C-Sharp-Utilities/bin/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.xml
+++ b/Stone_Red-C-Sharp-Utilities/bin/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.xml
@@ -77,25 +77,153 @@
-
+
Console Extentions
-
+
Writes the text representation of the specified object to the standard output stream.
-
+
Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
+
+
+ Specifies the severity of the log target.
+
+
+
+
+ Writes log to console
+
+
+
+
+ Writes log to debug console
+
+
+
+
+ Writes log to file
+
+
+
+
+ Writes log to console and file
+
+
+
+
+ Writes log to debug console and file
+
+
+
+
+ Writes log to console debug console and file
+
+
+
+
+ Specifies the severity of the log message.
+
+
+
+
+ Logs that contain the most detailed messages.
+
+
+
+
+ Logs that track the general flow of the application.
+
+
+
+
+ Logs that highlight an abnormal activity in the flow of execution.
+
+
+
+
+ Logs that highlight when the flow of execution is stopped due to a failure.
+
+
+
+
+ Logs that contain the most severe level of error. This type of error indicate that immediate attention may be required.
+
+
+
+
+ Class used for logging
+
+
+
+
+ Format that is used when logging to the console
+
+
+
+
+ Format that is used when logging to the debug console
+
+
+
+
+ Format that is used when logging to a file
+
+
+
+
+ Initializes the logger with the default format
+
+
+
+
+
+
+
+ Initializes the logger with the default format
+
+
+
+
+
+
+ Log the message to the specified output
+
+
+
+
+
+
+
+
+
+
+ Log the message to the specified output when the condition is met
+
+
+
+
+
+
+
+
+
+
+
+ Clears log file
+
+
Extentions
@@ -133,5 +261,22 @@
+
+
+ Truncates a string to the specified length.
+
+
+
+
+
+
+
+ Truncates a string to the specified length.
+
+
+
+
+
+
diff --git a/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.csproj.CoreCompileInputs.cache b/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.csproj.CoreCompileInputs.cache
index d88cd00..0b2c38d 100644
--- a/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.csproj.CoreCompileInputs.cache
+++ b/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.csproj.CoreCompileInputs.cache
@@ -1 +1 @@
-720090d901031d5b30d715855746daa6aaddc3bc
+5da8ee29e757543d794f5481de018812db6a323f
diff --git a/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.csproj.FileListAbsolute.txt b/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.csproj.FileListAbsolute.txt
index cdfce99..960ac7d 100644
--- a/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.csproj.FileListAbsolute.txt
+++ b/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.csproj.FileListAbsolute.txt
@@ -1,10 +1,10 @@
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\bin\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.deps.json
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\bin\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.dll
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\bin\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.pdb
-C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.csprojAssemblyReference.cache
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.AssemblyInfoInputs.cache
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.AssemblyInfo.cs
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.csproj.CoreCompileInputs.cache
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.dll
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.pdb
C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\bin\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.xml
+C:\Users\David\Google Drive\Programmieren\Stone_Red-C-Sharp-Utilities\Stone_Red-C-Sharp-Utilities\obj\Debug\netstandard2.1\Stone_Red-C-Sharp-Utilities.csprojAssemblyReference.cache
diff --git a/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.csprojAssemblyReference.cache b/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.csprojAssemblyReference.cache
index fd6301f..b9ceffa 100644
Binary files a/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.csprojAssemblyReference.cache and b/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.csprojAssemblyReference.cache differ
diff --git a/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.dll b/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.dll
index 1b845a8..690f138 100644
Binary files a/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.dll and b/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.dll differ
diff --git a/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.pdb b/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.pdb
index 2e76cf3..eff74b9 100644
Binary files a/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.pdb and b/Stone_Red-C-Sharp-Utilities/obj/Debug/netstandard2.1/Stone_Red-C-Sharp-Utilities.pdb differ
diff --git a/Stone_Red-C-Sharp-Utilities/obj/Stone_Red-C-Sharp-Utilities.csproj.nuget.dgspec.json b/Stone_Red-C-Sharp-Utilities/obj/Stone_Red-C-Sharp-Utilities.csproj.nuget.dgspec.json
index 949c712..7df2d01 100644
--- a/Stone_Red-C-Sharp-Utilities/obj/Stone_Red-C-Sharp-Utilities.csproj.nuget.dgspec.json
+++ b/Stone_Red-C-Sharp-Utilities/obj/Stone_Red-C-Sharp-Utilities.csproj.nuget.dgspec.json
@@ -58,7 +58,7 @@
"privateAssets": "all"
}
},
- "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.103\\RuntimeIdentifierGraph.json"
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.104\\RuntimeIdentifierGraph.json"
}
}
}
diff --git a/Stone_Red-C-Sharp-Utilities/obj/project.assets.json b/Stone_Red-C-Sharp-Utilities/obj/project.assets.json
index 9637ef7..5536f11 100644
--- a/Stone_Red-C-Sharp-Utilities/obj/project.assets.json
+++ b/Stone_Red-C-Sharp-Utilities/obj/project.assets.json
@@ -65,7 +65,7 @@
"privateAssets": "all"
}
},
- "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.103\\RuntimeIdentifierGraph.json"
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.104\\RuntimeIdentifierGraph.json"
}
}
}
diff --git a/Stone_Red-C-Sharp-Utilities/obj/project.nuget.cache b/Stone_Red-C-Sharp-Utilities/obj/project.nuget.cache
index f8baeac..3df5ce0 100644
--- a/Stone_Red-C-Sharp-Utilities/obj/project.nuget.cache
+++ b/Stone_Red-C-Sharp-Utilities/obj/project.nuget.cache
@@ -1,6 +1,6 @@
{
"version": 2,
- "dgSpecHash": "2VJSRKb/gc57sxTJshaKHZlH4eHV1dHn5znnRPKDBMMcq2gLxMBxabpH2Q44hNjbAyPx6mu//H+srU7j3iCF3Q==",
+ "dgSpecHash": "aWSVR7De4Q2VY3O6G2D1iAjpBH8farjDoaC5cvp5irFy5kocS3MdyJjSHdKZ0zSh3PnZ9Aj3Gdvrb1If7qdwSg==",
"success": true,
"projectFilePath": "C:\\Users\\David\\Google Drive\\Programmieren\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities\\Stone_Red-C-Sharp-Utilities.csproj",
"expectedPackageFiles": [],