Skip to content

Getting exception while adding appender  #6

@deftscorpio

Description

@deftscorpio

I am getting exception when trying this line:

log4js.addAppender(
mongoAppender.appender({connectionString: 'localhost:27017/logs'}),
'cheese'
);Exception:

Exception has occurred: Error
TypeError: log4js.addAppender is not a function
at Object. (d:\myScriptFile.js:28:8)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Timeout.Module.runMain [as _onTimeout] (module.js:590:10)
at tryOnTimeout (timers.js:232:11)
at Timer.listOnTimeout (timers.js:202:5)

Using these versions:

"log4js": "2.0.1",
"log4js-node-mongodb": "2.2.1",

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions