-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logger creation error #10
Comments
Ok, now. I clearly see that the right examples are missing. They are to be added some days this week. Right away you can use services in a way like this: https://github.com/cocaine/cocaine-framework-nodejs/tree/development#make-use-of-cocaine-services This one proved itself to be working: |
I changed program as you recommended:
but still have an error during logger initialization:
And it is a logger initialization call again. Any clues? |
Hi, I have a problem with logger.
Error:
Cocaine module version: "0.4.1-6". |
That's an inaccuracy in readme, since cli.Logger is a factory function, not a constructor. So, you can create logger like this:
See also https://github.com/cocaine/cocaine-framework-nodejs/blob/v0.4/sample/client.0.js or https://github.com/cocaine/cocaine-framework-nodejs/blob/v0.4/sample/client.1.js |
I'm trying to create logger by running following code (node 0.10.17)
it generates an error:
The text was updated successfully, but these errors were encountered: