Which logging API are you using? I don't see a method with that signature in the java.util.logging package.
Either way, I think I would recommend against this just because it isn't what assertions are designed to do. I understand that you want to turn off assertions, but why turn off logging? Logging can be a very useful tool even in the field.
Even if you must turn if off completely, it might be better to do this the 'proper' way: such as passing Level.OFF to the setLevel method in the
Java Logging API.