View Single Post
Old 09-14-2011, 01:52 PM   #2550
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Terisa de morgan, quisvir

I would always define
Code:
var log = Core.log.getLogger("MyCode");
to not presume that a log-instance is present.

There are four(4) log-levels in core___log.js
"trace", "info", "warn" and "error"

only log.error("message", e) will output e into the log along with message.

use: log.trace("message"+e) to achieve the same with the other levels.

Log level for beta-builds is controled in /Beta/user.config
Code:
// what to log and what not, possible values are: all, trace, info, warn, error
config.defaultLogLevel = "trace";
Mark Nord is offline   Reply With Quote