Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Logging #77

Closed
mkovatsc opened this issue Jan 30, 2018 · 2 comments
Closed

Logging #77

mkovatsc opened this issue Jan 30, 2018 · 2 comments

Comments

@mkovatsc
Copy link
Contributor

We removed winston, as it should be up to the final application to choose the logging framework.

Console, however, does not support a debug log-level prior to Node v8.0.0. Yet we need to support one of these old versions for reasons.

@mkovatsc
Copy link
Contributor Author

We could use the debug module, which is good for library modules and frameworks (e.g., used by express):

const debug = require('debug')('my-namespace')
const name = 'my-app'
debug('booting %s', name)

@mkovatsc
Copy link
Contributor Author

Moved to eclipse-thingweb/node-wot#17.
Closing.

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

No branches or pull requests

1 participant