-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from bozoweed/master
update to 8.0.0
- Loading branch information
Showing
2 changed files
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
using Eco.Shared.Utils; | ||
using Eco.Shared.Localization; | ||
using Eco.Shared.Utils; | ||
|
||
namespace Eco.Plugins.DiscordLink | ||
{ | ||
public class Logger | ||
{ | ||
public static void Debug(string message) | ||
{ | ||
Log.Write("DISCORDLINK DEBUG:" + message + "\n"); | ||
Log.Write(new LocString("DISCORDLINK DEBUG:" + message + "\n")); | ||
} | ||
|
||
public static void DebugVerbose(string message) | ||
{ | ||
if (DiscordLink.Obj?.DiscordPluginConfig.Debug == true) | ||
{ | ||
Log.Write("DISCORDLINK DEBUG:" + message + "\n"); | ||
Log.Write(new LocString("DISCORDLINK DEBUG:" + message + "\n")); | ||
} | ||
} | ||
|
||
public static void Info(string message) | ||
{ | ||
Log.Write("DISCORDLINK: " + message + "\n"); | ||
|
||
Log.Write(new LocString("DISCORDLINK: " + message + "\n")); | ||
} | ||
|
||
public static void Error(string message) | ||
{ | ||
Log.Write("DISCORDLINK ERROR: " + message + "\n"); | ||
Log.Write(new LocString("DISCORDLINK ERROR: " + message + "\n")); | ||
} | ||
} | ||
} | ||
} |