Skip to content
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

TypeError: createLogger is not a function #8

Open
exsilium opened this issue May 26, 2017 · 2 comments
Open

TypeError: createLogger is not a function #8

exsilium opened this issue May 26, 2017 · 2 comments

Comments

@exsilium
Copy link

Hi! I thought I'd test-drive this nice looking logging module. However, ran into an issue from the start go with node v6.10.1 and logging v3.2.0 via npm.

const createLogger = require('logging');  
const log = createLogger('xmodem');

This results in:

const log = createLogger('xmodem');
            ^
TypeError: createLogger is not a function
@gavynriebau
Copy link

gavynriebau commented Aug 7, 2017

@exsilium

I had the same issue, I think the docs are just out of date but if you try again using the following syntax it should work:

const createLogger = require('logging');  
const log = createLogger.default('xmodem');

@stevage
Copy link

stevage commented Oct 2, 2017

Yeah I think somewhere in the process of updating to use the new module syntax, the old syntax got broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants