Skip to content

Commit

Permalink
better logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaksuhn committed Apr 10, 2024
1 parent 0b0dcca commit d56481b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion SomethingNeedDoing/Interface/HelpWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ static void DisplayChangelog(string date, string changes, bool separator = true)
"- Changed TeleportToGCTown() to use tickets optionally\n" +
"- Added the cfg argument to the main plugin command\n" +
"- Added SetSNDProperty()\n" +
"- Added GetSNDProperty()\n");
"- Added GetSNDProperty()\n" +
"- Fixed the log functions to take in any object as opposed to only strings.\n");

DisplayChangelog(
"2024-04-08",
Expand Down
6 changes: 3 additions & 3 deletions SomethingNeedDoing/Misc/Commands/SystemCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public List<string> ListAllFunctions()

public unsafe void CrashTheGame() => Framework.Instance()->UIModule = (UIModule*)0;

public void LogInfo(string text) => Svc.Log.Info(text);
public void LogDebug(string text) => Svc.Log.Debug(text);
public void LogVerbose(string text) => Svc.Log.Verbose(text);
public void LogInfo(object text) => Svc.Log.Info($"{text}");
public void LogDebug(object text) => Svc.Log.Debug($"{text}");
public void LogVerbose(object text) => Svc.Log.Verbose($"{text}");
}

0 comments on commit d56481b

Please sign in to comment.