It is possible to make some changes to the object at runtime.
My problem is that I have one class that returns me a registrar instance. and this class contains only one public method that the registrar returns. lower class ..
public class LoggerManager {
public Logger getLogger(String FQCN) {
Logger logger = Logger.getLogger(FQCN);
logger.setLevel(Level.INFO);
return logger;
}
}
now, if I want to change the returned object at runtime,
which means that the log object that is set to the INFO level, I want to change it to DEBUG .. during program execution only when this code is called at a specific time ... without changing the code anywhere .. some thing like this ...
logger.setLevel(Level.DEBUG);
can i achieve this, by any means?
.. 1000 , .... ...