rreganjr / chichi-ng

component library for angular
MIT License
0 stars 0 forks source link

Visual Scheduler: replace console logging with a configurable logger #51

Open rreganjr opened 2 years ago

rreganjr commented 2 years ago

ideally a logger like Log4j that can wrap logging to bypass building strings if logging is off. Even better something like SLF4J because this is a library and why force a user to incorporate my logging library.

if (log.isDebugEnabled()) {
   log.debug(`some complex string building ${somevar} etc.`);
}

lots of articles to write your own, plus ngx-logger

https://github.com/pford68/slf4js - this is probably what I want.

https://dzone.com/articles/angular-logging-and-log-back - this includes server side support for log-back

https://medium.com/@dneimke/configurable-logging-in-angular-projects-30dd5d999db6

https://www.npmjs.com/package/ngx-logger

https://www.codemag.com/article/1711021/Logging-in-Angular-Applications