Loggers in Java,Selenium for Beginners

      No Comments on Loggers in Java,Selenium for Beginners


A Logger object is used to log messages for a specific system or application component.
A Logger is useful to track the sequence of actions.
Each Logger has a “Level” associated with it. This reflects a minimum Level that this logger cares about.
The log level can be configured on the Logger.setLevel method.
Refer to the API Link for different levels.
Log Levels

  • SEVERE (highest value)
  • WARNING
  • INFO
  • CONFIG
  • FINE
  • FINER
  • FINEST (lowest value)
  • OFF
  • ALL


Logic

Conclusion:
Logging using a java.util.logging.Logger class is easy to implement in Java and Selenium automation projects.
OUTPUT:

java.util.logging.Logger

java.util.logging.Logger

Leave a Reply

Your email address will not be published. Required fields are marked *