Documentation for log, console, etc

I’m having trouble finding effect documentation – perhaps I’m not looking in the right places so having a URL to the documentation would be more than sufficient. In the meantime I’ve been trying to extrapolate from examples.

log function – log.debug, log.trace etc

console – I can’t get it to appear consistently in the IDE window nor to get messages to consistently appear in the log window.

currentState – I found the capabilities table but haven’t found documentation for the values of currentState

Publish – it often warns me that I’m about to leave the page when I click “publish” even after a save – and sometimes it doesn’t and just updates or reinstalls the app.

More questions:

First – a discovery – if I close the browser completely and restart it it appears I can publish without being told i"m leaving the page.

How can an application find its version number and other such information?

When I get errors during a save I can I find out where they are occurring?

   grails.validation.ValidationException: Validation Error(s) occurred during save():
   - Field error in object 'physicalgraph.device.Device' on field 'name': rejected value [null]; codes

bobfrankston -

The logging engine SmartThings uses is based upon Log4J. General information (may not be the exact release being used) can be found at http://logging.apache.org/log4j/1.2/

Log levels/methods that I’m aware of are trace, debug and info. There may be others…

Another challenge – sending a response from an httpPut handler. Get seems to return the last value in the function but I can’t find a way to send a response to put (I want to send an acknowledgment) other using httpError which is inelegant at best.