You can do that by issueing "debug client 'scanner´s mac address'. The problem is that if your session drops, your debug will eventually stops.
However, programmatically is very simple. You can create a script to look for the scanners mac address every minute. 'show client summary'
If mac address in WLC, then, perform 'debug client 'scanner´s mac address' and then send to a file.
This way you dont need to keep a SSH session open.