mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-27 22:11:39 +00:00
I hope this log4net->unityconsole still works.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1af4a04b130c4be89677148da3ab8b86
|
||||
timeCreated: 1546859331
|
||||
Reference in New Issue
Block a user