NeoLogging is a very simple wrapper for UnityEngine.Debug
Unity3D
NeoLogging is a very simple library for logging using the build-in UnityEngine.Debug class, but allowing a very simple control of logging levels.
If you don't have access to Microsoft VisualStudio you can just use Unity3D and its compiler. Or use your VisualStudio installation in combination with Visual Studio Tools for Unity to compile a DLL-file, which can be included into your project.
Assets\NeoLogging into your projectUnityVS.NeoLogging.sln
Set the logging level for all instances of a logger:
Neo.Logging.Logger.LogLevel = Neo.Logging.Level.WARN;
Using instances of the Logger class you can log by sending parameters or a callback which will only be called if the logging level matches:
using Neo.Logging;
var logger = new Logger("MyClass");
logger.Log("This will be logged:", 12f); // => [MyClass] This will be logged: 12.0
logger.Warn(() => "This will only be called if needed"); // => This will only be called if needed