logger icon indicating copy to clipboard operation
logger copied to clipboard

Increase log levels.

Open UrielCh opened this issue 1 year ago • 4 comments

Compared to other log libraries the one has only 3 levels: info, warn, error

  • loglevel has 5 levels: trace, debug, info, warn, error
  • npmlog has 6 levels: silly, verbose, info, http, warn, error
  • @firebase/logger has 5 levels: debug, log, info, warn, error
  • pino has 6 levels: trace, debug, info, warn, error, fatal
  • ts-log has 5 levels: trace, debug, info, warn, error
  • ...

Can we update the log level to at least 5 levels?

I propose to use 5 levels:

  • debug
  • log
  • info
  • warn
  • error

UrielCh avatar Jun 11 '24 10:06 UrielCh

Can I have fuxingZhang POV ? @fuxingZhang

UrielCh avatar Jun 12 '24 06:06 UrielCh

I've been hospitalized lately. You can do exactly what you want

fuxingZhang avatar Jun 17 '24 08:06 fuxingZhang

tell me that you are agree to let me add the missing log level.

UrielCh avatar Jun 17 '24 16:06 UrielCh

tell me that you are agree to let me add the missing log level.

Yes, i agree to let you add the missing log level.

fuxingZhang avatar Jun 20 '24 07:06 fuxingZhang

@UrielCh have you made any progress?

We'd like to use this package, but three levels is just not precise enough for us.

SirBenedick avatar Dec 10 '24 14:12 SirBenedick

#18 should be mergable, waiting for approval.

UrielCh avatar Dec 10 '24 18:12 UrielCh

not merged yet.

Fine, the PR is now self approved.

UrielCh avatar Dec 22 '24 13:12 UrielCh

published

  • https://jsr.io/@deno-library/logger and
  • https://jsr.io/@deno-lib/logger

UrielCh avatar Feb 10 '25 11:02 UrielCh