-
Notifications
You must be signed in to change notification settings - Fork 0
/
Logger.cs
39 lines (38 loc) · 1 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.Text;
public class Logger
{
private static ConsoleColor def = ConsoleColor.Gray;
private static ConsoleColor disc = ConsoleColor.Magenta;
private static ConsoleColor last = ConsoleColor.Red;
private static ConsoleColor txt = ConsoleColor.White;
private static void _clr(ConsoleColor clr)
{
Console.ForegroundColor = clr;
}
public static void LogDiscord(string text)
{
_clr(def);
Console.Write("[");
_clr(disc);
Console.Write("Discord");
_clr(def);
Console.Write("] ");
_clr(txt);
Console.WriteLine(text.ToString());
_clr(ConsoleColor.Red);
}
public static void LogLast(string text)
{
_clr(def);
Console.Write("[");
_clr(last);
Console.Write("last.fm");
_clr(def);
Console.Write("] ");
_clr(txt);
Console.WriteLine(text.ToString());
_clr(ConsoleColor.Red);
}
}