Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Liquibase 3.2.2 :: DefaultLogger output to error

$
0
0
I would like to know why the DefaultLogger is using error output by default.

  1. public class DefaultLogger extends AbstractLogger {

  2.     private String name = "liquibase";
  3.     private PrintStream err = System.err;
  4.     ....
  5.  protected void print(LogLevel logLevel, String message) {
  6.         if (StringUtils.trimToNull(message) == null) {
  7.             return;
  8.         }

  9.         err.println(logLevel + " " + DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).format(new Date()) + ": " + name + ": " + buildMessage(message));
  10.     }
There is a reason for that ? why not system.out ?

Thanks in advance,

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>