Even when trace is disabled, your code will call at least one logger method per trace point.
甚至当跟踪禁用时,您的代码将在每个跟踪点至少调用一个日志记录器方法。
2
Productivity takes a hit because of the intervention of management at every point in the workflow, but this is acceptable when one considers the risk inherent in the alternative luck method.
One is not checking the parameters coming in, even though you know at this point that a parameter in a certain state will cause an exception in your method.