add flag to enable jdk logger instead of console