Logging information out of the sandbox

Is it possible to have an application log information (possibly based on some logging “level”, like “debug”, “info”, …) when they are published, instead of running in the sandbox?
There are situations which are difficult to test in the sandbox (especially when dealing with presence devices), and being able to log information would help troubleshoot issues.