You can override logs completely with your own methods. This can be done either via the custom inspector or C# scripting. Here is a C# example:
usingUnityEngine;usingCatLog;publicclassCustomLogBehaviour:MonoBehaviour{privatevoidStart() { // Modify the InfoLogAction property to change the behavior of the Log.Info methodLog.Settings.Actions.InfoLogAction= CustomInfoLog;Log.Info("A message"); }privatevoidCustomInfoLog(string message,string sourceFilePath,int lineNumber) { // Custom behavior for the Log.Info methodDebug.Log("[CUSTOM INFO LOG]: "+ message); }}
Now, whenever you call the Log.Info method, it will use the custom behavior defined in the CustomInfoLog method. For example:
Log.Info("This is a custom info log message");//[CUSTOM INFO LOG]: This is a custom info log message
To remove the custom action you simply set it back to null again, then the default logging method will take over:
Log.Settings.Actions.InfoLogAction=null;//[INFO] CustomLogBehaviour.cs[12]: A message