We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2abd6f5 commit b112fe0Copy full SHA for b112fe0
TLibrary/Models/Plugin/TLogger.cs
@@ -1,6 +1,7 @@
1
using System;
2
using System.IO;
3
using System.Text.RegularExpressions;
4
+using Tavstal.TLibrary.Extensions;
5
6
namespace Tavstal.TLibrary.Models.Plugin
7
{
@@ -181,7 +182,11 @@ public void SetDebugMode(bool isActive)
181
182
/// <param name="prefix"></param>
183
public void LogRich(object message, string prefix = "&a[INFO] >&f")
184
- string text = $"&b[{_pluginName}] {prefix} {message}";
185
+ string text;
186
+ if (_moduleName.IsNullOrEmpty())
187
+ text = $"&b[{_pluginName}] {prefix} {message}";
188
+ else
189
+ text = $"&b[{_pluginName}] [{_moduleName}] {prefix} {message}";
190
try
191
192
ConsoleColor oldColor = Console.ForegroundColor;
0 commit comments