I hope this log4net->unityconsole still works.

This commit is contained in:
alexiscatnip
2022-02-06 13:16:03 +08:00
parent a919aa1622
commit bf95c3173f
3 changed files with 15 additions and 0 deletions
@@ -2,6 +2,7 @@
using log4net.Core;
using UnityEngine;
// any Logs to log4net will also appear in debug console.
public class UnityDebugAppender : AppenderSkeleton
{
protected override void Append(LoggingEvent loggingEvent)
+11
View File
@@ -0,0 +1,11 @@
using log4net.Appender;
using log4net.Core;
using UnityEngine;
public class UnityDebugAppender : AppenderSkeleton
{
protected override void Append(LoggingEvent loggingEvent)
{
Debug.Log(RenderLoggingEvent(loggingEvent));
}
}
+3
View File
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 1af4a04b130c4be89677148da3ab8b86
timeCreated: 1546859331