quirkey / node-logger

A simple logging library that combines the simple APIs of Ruby's logger.rb and browser-js console.log()
49 stars 54 forks source link

A rewrite in typescript. #14

Open tinnick opened 4 years ago

tinnick commented 4 years ago

I rewrote the source in typescript. Please check and see if there are any problems in the code.

Deprecated module "sys" is replace with "util".

I could not find a way to implement:

levels.forEach(level => {
    this.prototype[level] = function() {
        ... // more code here
    }
})

in typescript so I used Object.assign in the constrcutor.