View on Asset Store (opens in new tab)
Package details
- Latest version
- 6.0.1
- Last updated
- First released
- Unity version
- 6000.0.68 or later
- Package size
- 45 KB
- Files
- 13
- Favorites
- 1
- Views in the past week
- 3
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $10.50 on
Keywords
Flexy.Log
Structured, Customizable and Allocation free drop in replacement logging for Unity
Price $15.00
Buy on Asset Store (opens in new tab)
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 4
Flexy.Log screenshot 1
About this asset
Extend logs in your projects
Easy replace logs in entire project with one line of code
And make them Reach, Filterable and Allocation free on string interpolation
Key Benefits
- Almost free on disabled logs
- Very low perf impact on enabled log filtering
- Enable/Disable logs in files on demand without rebuild/redeploy
How It Works
- Reroute all calls to `Debug.Log` with `Flexy.Log.Debug` and handle logging in Allocation Free way
How To use
- Enable 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 calls
- Set 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 by
- Debug.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");
From the publisher's Asset Store listing.
Technical details
Require enable C# 10
Tested with Unity 2022.3 through Unity 6.3
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 6000.0.68f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.