Log to Server in Laszlo

来源:互联网 发布:君君 淘宝佛珠 编辑:程序博客网 时间:2024/05/21 10:42

Messages can be written from an LZX application to the server log through the use of the  logdebug=true query parameter and the Debug.log() method.

 

Debug.monitor(who, what): Takes an object and property name and will emit a monitor message each time that property is changed.

 

Debug.unmonitor(who, what): Turns that off.

 

Debug.trace() traces method calls. It gives a timestamp on function call, shows the call and arguments, and a timestamp on function exit, shows the return value.

 

If backtracing is enabled, the trace and monitor messages also capture a backtrace (which you can see by inspecting the message). Can be especially handy if you are trying to figure out who/what/when is calling a method or clobbering a property

原创粉丝点击