shodan icon indicating copy to clipboard operation
shodan copied to clipboard

Allow for compiling out log statements

Open davesann opened this issue 10 years ago • 4 comments

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?

davesann avatar Feb 01 '15 09:02 davesann

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!

noprompt avatar Feb 01 '15 18:02 noprompt

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.

davesann avatar Feb 01 '15 22:02 davesann

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.

noprompt avatar Feb 02 '15 05:02 noprompt

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

Thanks for great the library btw.

sundbry avatar Mar 23 '16 17:03 sundbry