mirror of
https://github.com/Stone-Red-Code/HyperbolicDownloader.git
synced 2026-09-08 23:41:05 +02:00
Improve log colors
This commit is contained in:
@@ -15,6 +15,7 @@ internal class LogCommands
|
|||||||
this.debug = debug;
|
this.debug = debug;
|
||||||
|
|
||||||
Console.Clear();
|
Console.Clear();
|
||||||
|
Console.BackgroundColor = ConsoleColor.Black;
|
||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
@@ -41,6 +42,7 @@ internal class LogCommands
|
|||||||
ApiManager.OnNotificationMessageRecived -= OnNotificationMessageRecived;
|
ApiManager.OnNotificationMessageRecived -= OnNotificationMessageRecived;
|
||||||
|
|
||||||
Console.Clear();
|
Console.Clear();
|
||||||
|
Console.ResetColor();
|
||||||
|
|
||||||
Console.WriteLine("Log closed");
|
Console.WriteLine("Log closed");
|
||||||
}
|
}
|
||||||
@@ -53,7 +55,7 @@ internal class LogCommands
|
|||||||
{
|
{
|
||||||
if (e.Message?.Contains('>') == true && IPAddress.TryParse(e.Message[..e.Message.IndexOf('>')].Trim(), out IPAddress? ipAddress))
|
if (e.Message?.Contains('>') == true && IPAddress.TryParse(e.Message[..e.Message.IndexOf('>')].Trim(), out IPAddress? ipAddress))
|
||||||
{
|
{
|
||||||
ConsoleExt.Write($"[{DateTime.Now}] ", ConsoleColor.DarkGray);
|
ConsoleExt.Write($"[{DateTime.Now}] ", ConsoleColor.Gray);
|
||||||
|
|
||||||
if (e.NotificationMessageType == NotificationMessageType.Debug)
|
if (e.NotificationMessageType == NotificationMessageType.Debug)
|
||||||
{
|
{
|
||||||
@@ -86,7 +88,7 @@ internal class LogCommands
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ConsoleExt.Write($"[{DateTime.Now}] ", ConsoleColor.DarkGray);
|
ConsoleExt.Write($"[{DateTime.Now}] ", ConsoleColor.Gray);
|
||||||
|
|
||||||
if (e.NotificationMessageType == NotificationMessageType.Debug)
|
if (e.NotificationMessageType == NotificationMessageType.Debug)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user