Quick Tip 47: Change the Log Level

To change the Log Level in your application during development add this to your project.properties:

run.args.extra=-J-Dorg.netbeans.level=WARNING

Or another java.util.logging.Level (SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST)

If you want to do it for a specific Logger:

run.args.extra=-J-Dname.of.my.logger.level=FINEST

Make sure you don’t forget the “.level”.

To change the log level in the deployed application, you can set the same properties via your applications .conf file, e.g:

default_options=”–branding myapp -J-Xms24m -J-Xmx64m -J-Dname.of.my.logger.level=FINEST

Hinterlasse eine Antwort