noprompt / shodan

A ClojureScript library providing wrappers for the JavaScript console API.
111 stars 11 forks source link

Allow for compiling out log statements #9

Open davesann opened 9 years ago

davesann commented 9 years ago

It would be useful to have log levels and means to disable or enable log statements in specific namespaces.

I would see this as a compile time feature - what do you think?

noprompt commented 9 years ago

I actually started on a concept like this a little while ago but I never finished fleshing it out. The idea was to enable creation of custom console loggers via protocols. I'd like to finish it up but I just haven't had the time to get to it!

davesann commented 9 years ago

Sounds good.

Thinking out loud, Perhaps there are other useful possibilities for extension of log types, including production logging.

Log back to a server Log to local storage - to periodically batch back to server perhaps for sometimes offline apps.

noprompt commented 9 years ago

Yes. These are all ideas that have come to mind and have been implemented in various independent ways. I think getting a core set of protocols to unify the generic concepts would make it a heck of a lot easier to do different things in much the same way.

sundbry commented 8 years ago

+1, for both compiling out logs and adding custom loggers (for remote logging etc)!

Thanks for great the library btw.