From 7a807c133c1689942865946b0a108669a05dec38 Mon Sep 17 00:00:00 2001 From: Nicholas Dunnaway Date: Tue, 4 Jan 2022 11:43:45 -0800 Subject: [PATCH] Added file del --- docs/README.md | 42 +--------------------- src/Digitalroot.Unity3d.Log/TraceLogger.cs | 13 +++++++ 2 files changed, 14 insertions(+), 41 deletions(-) diff --git a/docs/README.md b/docs/README.md index 198fb56..cc99f0a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,51 +1,11 @@ -Structuring your Thunderstore package -https://github.com/ebkr/r2modmanPlus/wiki/Structuring-your-Thunderstore-package - -Manifest V1 (Thunderstore) + author field -https://github.com/ebkr/r2modmanPlus/wiki/Installing-mods-locally#manifest-v1-thunderstore--author-field - - -Move me to [gitrepo]/doc - # Summary -This is a port of ModTemplate to JVL -PR: https://github.com/Atokal/AtosArrows/pull/3 -Assets belong to Atokal and are used with permission because of: -- Asset use permission You are allowed to use the assets in this file without permission or crediting me. https://www.nexusmods.com/valheim/mods/969 (June 12, 2021) - -Original Mod: https://www.nexusmods.com/valheim/mods/969 - -**Code is a complete rewrite.** - -## License -Original source has no license. -JVL Version is released under: **GNU Affero General Public License v3.0** - -## ModTemplate -Adds several new arrows into the game. Expands arrow progression for fighting tougher enemies! - -New Items: -- Stone Arrow -- Blunted Arrow - -### Dependencies -- BepInExPack Valheim -- Jotunn (JVL) - -### Installation (manual) -1. Download the latest release archive (zip) file. -1. Extract the archive into <Steam Location>\steamapps\common\Valheim\BepInEx\plugins - -### Configuration -- No need to configure. +Unity Logging ### Issues/Questions/Bugs - Use the repo issues tab above. ### Support Me @ https://www.buymeacoffee.com/digitalroot -### Thanks to -- Atokal

Digitalroot can be found in the Odin Plus Team Discord
diff --git a/src/Digitalroot.Unity3d.Log/TraceLogger.cs b/src/Digitalroot.Unity3d.Log/TraceLogger.cs index 49b1ad2..dc506d9 100644 --- a/src/Digitalroot.Unity3d.Log/TraceLogger.cs +++ b/src/Digitalroot.Unity3d.Log/TraceLogger.cs @@ -28,6 +28,14 @@ public TraceLogger(string source, bool enableTrace) if (!bepInExLogsDirectoryInfo.Exists) bepInExLogsDirectoryInfo.Create(); _traceFileInfo = new FileInfo(Path.Combine(bepInExLogsDirectoryInfo.FullName, $"{_source}.Trace.log")); + + if (_traceFileInfo.Exists) + { + _traceFileInfo.Delete(); + _traceFileInfo.Refresh(); + } + + Application.logMessageReceived += ApplicationLogMessageReceived; } catch (Exception e) { @@ -35,6 +43,11 @@ public TraceLogger(string source, bool enableTrace) } } + private void ApplicationLogMessageReceived(string condition, string stackTrace, LogType type) + { + + } + public void EnableTrace() { IsTraceEnabled = true;