#JavaScript & #TypeScript doesn't seem to have a decent #logging library. I looked around, but none of them fulfill all my needs.
• Creating loggers should be possible before configuring drivers/appenders/filters.
• The loggers should be divided into categories, and the categories should be hierarchically organized. For example, the drivers I set for the foo logger should also apply to the foo.bar and foo.bar.qux loggers.
• Multiple runtimes should be supported in addition to #Node.js, such as browsers, #Deno, #Bun, etc.
#log4js comes close to fulfilling the first two requirements, but does not fulfill the last one (runtime diversity).
Time for another yak shaving?
@hongminhee I've used "tslog" before and it was alright. Though it didn't work with Deno or Bun few months ago. Maybe it's supported now.
@wraptile I also looked at tslog, but it doesn't support Deno.
@hongminhee yeah logging sucks in JS. I miss Python's loguru every time I need to work in TS. Fortunately you can cobble up basic logger with the default console logging and a few classes to handle namespaces.