forked from NooodyFR/WidevineClient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLogger.cs
28 lines (26 loc) · 819 Bytes
/
Logger.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Text;
namespace WidevineClient
{
class Logger
{
public static void Cyan(object text, bool time = true)
{
if (time)
Console.Write(DateTime.Now.ToString("[yyyy-MM-dd HH:mm:ss.fff]") + " - ");
Console.ForegroundColor = ConsoleColor.Cyan;
if (time)
Console.Write(text);
else
Console.Write(" " + text);
Console.ResetColor();
Console.WriteLine();
}
public static void Print(object text, bool enter = true)
{
Console.Write(DateTime.Now.ToString("[yyyy-MM-dd HH:mm:ss.fff]") + " - " + text);
if (enter) Console.WriteLine();
}
}
}