mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:17:22 +01:00
minor bugfixing and log severity adjustment
This commit is contained in:
parent
57c0a4b9b0
commit
34ed21472a
6 changed files with 54 additions and 36 deletions
|
|
@ -6,6 +6,12 @@ namespace MareSynchronos.Utils
|
|||
{
|
||||
internal class Logger
|
||||
{
|
||||
public static void Info(string info)
|
||||
{
|
||||
var caller = new StackTrace().GetFrame(1)?.GetMethod()?.ReflectedType?.Name ?? "Unknown";
|
||||
PluginLog.Information($"[{caller}] {info}");
|
||||
}
|
||||
|
||||
public static void Debug(string debug, string stringToHighlight = "")
|
||||
{
|
||||
var caller = new StackTrace().GetFrame(1)?.GetMethod()?.ReflectedType?.Name ?? "Unknown";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue