Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Logging in ADF Application

Manasa ChandaSep 14 2021

Hello experts,
I have below requirement to change logger level from ADF application instead of logging in to WebLogic. To explain more, we give Admin user privilege to change logging from application and the logger level should be changed based on user input. Instead of logging in to WebLogic server and changing logging level (As all the users will not have WebLogic credentials). Please let me know if this can be achieved.

Comments

807569
The file is just a Java properties file, which you can load and save using the java.util.Properties class.

If you want to change the logging level on the fly (while the program is running), you can do that too with Log4J - look at the API documentation of Log4J, I'm sure it's described in there.
807569
I know it is a Java properties file but I have to change the value at more than one places simultaneously and there are two values seperated by a comma(,), out of which only one I need to change. I would like to know that what is most efficient way of changing it.

The other thing is I know that we can change the log level using log4j on the fly, but that we have to do it programatically not manually based on the input seletedt by the user.
1 - 2

Post Details

Added on Sep 14 2021
5 comments
413 views