Skip to content

logger.js doesn't work in nodejs ver12. #12

Description

@taharactrl

sys.print is not defined in nodejs ver 12.

$ node
Welcome to Node.js v12.6.0.
Type ".help" for more information.
> const logger = require('logger').createLogger()
undefined
> (node:18732) [DEP0025] DeprecationWarning: sys is deprecated. Use util instead.
> logger.info('Hello World')
Thrown:
TypeError: this.write is not a function
    at Logger.log (*****/node_modules/logger/logger.js:99:10)
    at Logger.<computed> [as info] (*****/node_modules/logger/logger.js:109:21)

Please change sys.print to console.log.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions