Skip to content

Logger creation error #10

@wildart

Description

@wildart

I'm trying to create logger by running following code (node 0.10.17)

var co = require('cocaine')
var Logger = co.Service('logging')
L = new Logger(argv.app)
L.info("test")

it generates an error:

/home/test/test/node_modules/cocaine/lib/services/logging.js:32
    this.verbosity()
         ^
TypeError: Object #<EventEmitter> has no method 'verbosity'
    at EventEmitter.Logger [as __cls] (/home/art/Development/flood-bridge/node_modules/cocaine/lib/services/logging.js:32:10)
    at Object.<anonymous> (/home/art/Development/flood-bridge/bridge.js:21:5)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain [as _onTimeout] (module.js:497:10)
    at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions