Added a logger to output debug info with using std::out (or system.out.println(""))