logdna / logger-node

A nodejs logger client for LogDNA
MIT License
34 stars 17 forks source link

feat: allow user to disable log level validation #66

Closed emelski closed 2 years ago

emelski commented 2 years ago

With this change, the user may specify validateLogLevels: false when instantiating a logger in order to disable validation of log levels. This is helpful in cases where the log levels are not known in advance. If validateLogLevels is true, the logger behaves as it does now: unrecognized values for the log level are detected and the associated line is rejected, or the log level is coerced to the default value.

Fixes: #65

emelski commented 2 years ago

Closing this as this approach is incorrect, and my need for the change has faded.