Log4js Prevent log to file echoing to console

Using log4js on node-

What I am trying to do is log a lot of trivial stuff to logfile and errors to both screen and file.

The following code does achieve this but I am only getting node console output to screen not pretty log4js.

Uncommenting the commented lines in the code enables log4js through node console but has the unwanted side effect of echoing everything sent to logfile to the console.

Is there any way of getting log4js output to the console while logfile only goes to the file.

var log4js = require('log4js');

log4js.configure(
    {
        appenders: [
            {
                category: "logfile"
              , type: "dateFile"
              , filename: "f-splitoutput.log"
              , pattern: "-yyyy-MM-dd"
              , alwaysIncludePattern: true
            } 
            //,{
            //    type: "console"
            //} 
        ]
        , levels: {
            "logfile": "INFO"
            //,"console": "ERROR"
        }
        //,"replaceConsole": "true"
    }
);

var logfile = log4js.getLogger('logfile');

logfile.info('This is some Information');
logfile.error('This is an error');

console.log('Console log');
console.error('Console error');

I dont mind not using node's console.

In fact I have tried adding a category to the console appender like this but I get an error - TypeError: Cannot read property 'level' of undefined at Level.isLessThanOrEqualTo (C:\work\projects\node\log4js-test\node_modules \log4js\lib\levels.js:41:34)

So if this (below) is the way to go and I have made some silly mistake here that would be fine too. Thanks

var log4js = require('log4js');

log4js.configure({
        appenders: [
            {
                category: "logfile"
              , type: "dateFile"
              , filename: "f-splitoutput-b.log"
              , pattern: "-yyyy-MM-dd"
              , alwaysIncludePattern: true
            } 
            ,{
                category: "cons",
                type: "console"
            } 
        ]
        , levels: {
            "logfile": "INFO"
            ,"cons": "ERROR"
        }
        ,"replaceConsole": "true"
    }
);

var logfile = log4js.getLogger('logfile');
var cons = log4js.getLogger('cons');

logfile.info('This is some Information');
logfile.error('This is an error');

cons.log('Console log');
cons.error('Console error');