Skip to content
Advertisement

Is there a command line option for setting the default log level in Java

Can I do something along the lines of:

JavaScript

Obviously that doesn’t work, but you get the idea. Is there anything like that? Or am I forced to create a properties file?

Advertisement

Answer

You can even pass your log Level as a user defined property.

JavaScript

In your code:

JavaScript

But I have the idea that your are looking for a more “built-in” and automatically handled property, right? AFAIK, it doesn’t exist, but maybe I’m wrong.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement