Java SE 7 Programmer II — Question 5

Which three principles are best practices when implementing a logging strategy for an enterprise application?

Answer options

Correct answer: B, C, D

Explanation

The correct answer options B, C, and D are essential for effective logging as they ensure that log messages are relevant, informative, and structured. Option A is incorrect because while printing to the console can be avoided in production, it is not a strict best practice for logging strategies. Option E, while useful, is not as critical as the chosen correct answers.