To do so, include com.adobe.granite.ui.clientlibs.compiler.less to the logger names list of your Sling logging configuration and set the log level to debug, as shown here.
Be aware that
- You should not repeat the same logger name in multiple configurations;
- Enabling DEBUG level will generate a reasonable amount of logs.
For a full running example, visit the LESS debug sample project on GitHub.