I faced a google interview question that a system crashes when logging is not enabled and asked me the reasons for it.
I told them it is because it is a real time monitoring application system that runs on data from the logs.
But he said to me that the log statements are at the debug level and think of other reasons.
I couldnt think of a real solution for it.
Could you guys help me.
BTW:I am not sure of the question also like is (The system crashes when log is enabled/disabled?).
A more subtle cause might be that the code has concurrency bugs, and the log statements have the effect of slowing down some parts of the system, such that the concurrency bug does not manifest. But without the logging, the timing changes, and the bug manifests.