- SLS_Tracing - Tool SLS_Tracing - Application Logging
SLS_Tracing1 is a class for logs & stack traces handlings.
Static at any place in the code:
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: