Created new logger

This commit is contained in:
Andrei Tudor
2023-04-20 19:52:55 +03:00
parent 75a77389a8
commit b0be76c62b
15 changed files with 191 additions and 173 deletions

View File

@@ -7,9 +7,9 @@ using Discord;
namespace PluginManager
{
[Obsolete("Use Logger from PluginManager.Others.Logger namespace instead\nThis class will be removed soon")]
public static class Logger
{
public static bool isConsole { get; private set; }
private static bool isInitialized;
@@ -18,7 +18,6 @@ namespace PluginManager
public static void Initialize(bool console)
{
if (isInitialized)
throw new Exception("Logger is already initialized");