dylang / logging

Lightweight informative modern console logging.
MIT License
54 stars 13 forks source link

Better filename reporting... #3

Closed DrFriedParts closed 7 years ago

DrFriedParts commented 12 years ago

Thanks for this awesome utility. I had one small problem with it, since we namespace our files with periods. I don't think that is all that uncommon practice. I propose the following modification:

Improve handling of filename so that only the extension is stripped. That is, strip the last segment rather than keeping the first.

Examples:

"this.file.name.js" --> "this.file.name", not "this" "my.coffee.file.coffee" --> "my.coffee.file", not "my"

dylang commented 7 years ago

I've re-written the library, so this ticket is not valid any more. You now pick the exact string to use.