mirror of
https://github.com/ultrasn0w/app.git
synced 2025-12-16 03:09:53 +01:00
Register
This commit is contained in:
20
APP/Utility/LogBoy.cs
Normal file
20
APP/Utility/LogBoy.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Text;
|
||||
|
||||
namespace APP.Utility;
|
||||
|
||||
internal static class LogBoy
|
||||
{
|
||||
private static readonly StringBuilder Log = new();
|
||||
|
||||
internal static void AddToLog(string text)
|
||||
{
|
||||
Log.Append('[' + DateTime.Now.ToShortTimeString() + "] ");
|
||||
Log.Append(text);
|
||||
Log.AppendLine();
|
||||
}
|
||||
|
||||
internal static string GetLog()
|
||||
{
|
||||
return Log.ToString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user