Added LoggerService to Lua env. Made ILoggerService compliant with LuaCsLogger API.

This commit is contained in:
MapleWheels
2026-04-13 13:06:32 -04:00
parent addd3f7a45
commit 344027d757
4 changed files with 26 additions and 7 deletions
@@ -34,4 +34,26 @@ public interface ILoggerService : IReusableService
void LogDebugError(string message);
#endregion
#region LegacyCompat_LuaCsLogger
public void HandleException(Exception ex, LuaCsMessageOrigin origin)
{
HandleException(ex, origin.ToString());
}
public void LogError(string message, LuaCsMessageOrigin origin)
{
LogError(message);
}
#endregion
}
public enum LuaCsMessageOrigin
{
LuaCs,
Unknown,
LuaMod,
CSharpMod,
}