[#884] Change System.out calls to logging