Object ERROR has no method 'isGreaterThanOrEqualTo' ( using multiprocess + logLevelFilter) #100

sanggyun opened this Issue Nov 9, 2012 · 1 comment

2 participants



function deserializeLoggingEvent(clientSocket, msg) {
    var loggingEvent;
    try {
        loggingEvent = JSON.parse(msg);
        loggingEvent.startTime = new Date(loggingEvent.startTime);
        loggingEvent.level = log4js.levels.toLevel( loggingEvent.level.levelStr) // add line
        //loggingEvent.level.toString = function levelToString() {
        //    return loggingEvent.level.levelStr;


TypeError: Object ERROR has no method 'isGreaterThanOrEqualTo'
at /Users/iamteri/Documents/projects/api/apihub/node_modules/log4js/lib/appenders/logLevelFilter.js:9:21
at logTheMessage (/Users/iamteri/Documents/projects/api/apihub/node_modules/log4js/lib/appenders/multiprocess.js:53:25)
at Socket.chunkReceived (/Users/iamteri/Documents/projects/api/apihub/node_modules/log4js/lib/appenders/multiprocess.js:62:25)
at Socket.EventEmitter.emit (events.js:96:17)
at TCP.onread (net.js:391:31)

@nomiddlename nomiddlename pushed a commit that referenced this issue Nov 9, 2012
Gareth Jones fix for issue #100, multiprocess appender and logLevelFilter don't pl…
…ay nicely

Fixed in version 0.5.5 - thanks a lot for picking this up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment