diff --git a/Assets/Plugins/LibreMetaverse/Catnip/UnityDebugAppender.cs b/Assets/Plugins/LibreMetaverse/Catnip/UnityDebugAppender.cs index 3c1b402..fb9568f 100644 --- a/Assets/Plugins/LibreMetaverse/Catnip/UnityDebugAppender.cs +++ b/Assets/Plugins/LibreMetaverse/Catnip/UnityDebugAppender.cs @@ -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) diff --git a/Assets/UnityDebugAppender.cs b/Assets/UnityDebugAppender.cs new file mode 100644 index 0000000..3fe5212 --- /dev/null +++ b/Assets/UnityDebugAppender.cs @@ -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)); + } +} \ No newline at end of file diff --git a/Assets/UnityDebugAppender.cs.meta b/Assets/UnityDebugAppender.cs.meta new file mode 100644 index 0000000..42b2cd6 --- /dev/null +++ b/Assets/UnityDebugAppender.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 1af4a04b130c4be89677148da3ab8b86 +timeCreated: 1546859331 \ No newline at end of file