Analyze - SebastianKErben/SKE.Unity3D GitHub Wiki

The Analyze namespace currently contains one class: the Logging class.

The Logging class is derived from SingletonEternal and thus - once created - won't be destroyed by scene switches. You can always access Logging by calling

Logging.Instance

Logging is as simple as calling

Logging.Instance.Log("Cool log entry.")

but you should cache the reference to Logging.Instance like

var myLogger = Logging.Instance;

and then use

myLogger.Log()

to access the Log method.

Logs will be created in the application's persistent data path. Set

Logging.Instance.LogToDebug

to true or false to make the logger print your log messages in the debug console. You can also force this for single log entries by calling the Log method with an optional second parameter like

Logging.Instance.Log("This should show up in the console no matter what.", true)

Take a look at Examples/Analyze or Editor/Tests/Analyze to learn more about how to use the class.