Structured, Customizable and Allocation free
drop in replacement logging for UnityDocs | ForumExtend logs in your projectsEasy replace logs in entire project with one line of codeAnd make them Reach, Filterable and Allocation free on string interpolationKey BenefitsAlmost free on disabled logsVery low perf impact on enabled log filteringEnable/Disable logs in files on demand without rebuild/redeployHow It WorksReroute all calls to `Debug.Log` with `Flexy.Log.Debug` and handle logging in Allocation Free wayHow To useEnable C#10 support in project settings (add -langversion:10 to additional compiler arguments)Add line global using Debug = Flexy.Log.Debug; in one cs file in project to reroute callsSet log level as usual: Debug.unityLogger.filterLogType = LogType.Warning;Set log filtering level by: Debug.Filter!.FilterFrom = LogType.Warning;Allow logs from file for filter byDebug.Filter?.AllowLogOnPath ("./PathToFile.cs", "MethodName");Debug.Filter?.AllowLogOnPath ("./Assets/!Game/!Code/Settings/Window_GameSettings.cs", "Update");Debug.Filter?.AllowLogOnPath ("./Packages/fun.flexy.core/Runtime/GameContexts/GameContext.cs");Require enable C# 10Tested with Unity 2022.3 through Unity 6.3




