-
Notifications
You must be signed in to change notification settings - Fork 19
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
Typescript support #19
Comments
Can you help me with a PR please? |
@MikeMitterer I am working on v2 of ulog and it will be using a new concept. It will be the first native implementation of anylogger. The idea behind my-lib.js var log = require('anylogger')('my-lib')
log('logging is easy!') In application code, you require (the adapter for) your logging framework: var ulog = require('ulog') // ulog has native anylogger support, no adapter needed :)
var log = ('anylogger')('app')
log('test')
// no output shows as default level is info and this message is logged at log
// enable debug mode for all loggers
ulog.enable('*')
log('test 2')
// > "test 2"
// ulog is now also being used by my-lib
require('my-lib')
// > "logging is easy!" As you can see, |
See #14 |
Please add TS definitions to your module
The text was updated successfully, but these errors were encountered: