fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: handle invalid xml sent as a wlxml document
[fnpeditor.git]
/
src
/
fnpjs
/
logging
/
logging.js
diff --git
a/src/fnpjs/logging/logging.js
b/src/fnpjs/logging/logging.js
index
e68302d
..
4237f65
100644
(file)
--- a/
src/fnpjs/logging/logging.js
+++ b/
src/fnpjs/logging/logging.js
@@
-37,9
+37,14
@@
_.extend(Logger.prototype, {
}
if(levels.indexOf(handlerLevel) !== -1 && levels.indexOf(level) >= levels.indexOf(handlerLevel)) {
}
if(levels.indexOf(handlerLevel) !== -1 && levels.indexOf(level) >= levels.indexOf(handlerLevel)) {
- handler(message, level, data);
+ handler({
+ message: message,
+ level: level,
+ loggerName: this.name,
+ data: data
+ });
}
}
- });
+ }
.bind(this)
);
}
if(this.config.propagate && this.name) {
var logger = new Logger(this.name.split('.').slice(0, -1).join('.'));
}
if(this.config.propagate && this.name) {
var logger = new Logger(this.name.split('.').slice(0, -1).join('.'));