Login +

Reference Guide / SLS_Tracing

SLS_Tracing1 is a class for logs & stack traces handlings.


Static at any place in the code:


Function addTrace

The addTrace() function can handle an error, a warning or simply the message of his choice. It will write in the logs in production and display message in development:

SLS_Tracing::addTrace(new Exception("Show me stack trace"));

In production mode, the message will be written in the logs:


  1. SLS_Tracing - Tool SLS_Tracing - Application Logging