Skip to content

K. Quick Hack

Rayhan Ferdous edited this page Sep 19, 2017 · 3 revisions

If you ever face doubt about where to use info and debug level logging or whether to use them, you can follow the quick hack below. hack

Any reusable routine such as functions/modules should be started and ended with info level log. They are reusable because, you can call them explicitly from other locations.

Any non-reusable routine such as for loops, conditionals, try-catch these are internal routines and not directly reusable. Because, you cannot call the internal for loop of a function explicitly from any outer scope. You have to call the function as a whole that contains the loop. So, this is more detailed and deeper than info level. So, use debug in this situation.

Clone this wiki locally