WebDriver Logger is the combination of using a Java logging class as well as a WebDriver to help log the events and actions which are taking place as your tests are running. The logger class can also help with logging managements as well as exporting your logging information into an external source file.
WebDriver Logger Video Tutorial
We can use the logger class provided by Java top help define logging levels. This can help identify issues as well as manage noise levels when outputting logs. We can also easily export this into an external file such as a text file if needed.