title: How to get browser logs using selinium
body: <p>I have a log which logs using formatting.</p>
  
  <pre><code>console.log('%c%s - %s', 'color:blue; font-weight:bold;', msg.type, msg.message);
  </code></pre>
  
  <p>I need to get these logs using selinium.</p>
  
  <p>Using </p>
  
  <pre><code>LogEntries logEntries = driver.manage().logs().get(LogType.BROWSER);
  for (LogEntry entry : logEntries) {
    System.out.println(entry.getLevel() + " " + entry.getMessage());
   }
  </code></pre>
  
  <p>prints</p>
  
  <pre><code>INFO xyz/abc/LogService.js 45:14 %c%s - %s
  </code></pre>
  
  <p>instead of printing the value of the object.</p>
  
  <p>How do I get the value of <code>%s</code> or <code>%c</code> formats in the logs.</p>