Log output or IllegalArgumentException