I have written up a series of integration tests for a set of web apps using WebDriver, JUnit and Drone. I am now in the processing of removing the System.out.println commands that display information about the current status of the integration test at key points and would like to replace some of them in a way that does not reduce performance as much as System.out.println. Currently I am using a Logger and logging key points with Level.INFO, while I log exceptions that affect the test with the Level.WARNING and level.SEVERE options. Assertions handle most of my logging.
As I am an inexperienced programmer and very new to logging, I was wondering the following:
- Is there a set of conventions for logging levels (more specifically what to log with INFO levels)?
- From my description, have I got a grasp of how Loggers should be used?
An answer regarding this situation (integration testing) would be much appreciated, as I believe I'm aware of logging within an application.