Re: how to programatically temporarily turn off logging

2003-08-26 Thread Dean Hiller
thanks Dominique. I think I have to go your suggested route instead. The previous suggestion by Jan was really good, but turned out I would have to worry too much about cloning the project properties and alot of other stuff. I did especially like the debug you added too fits in right wi

RE: how to programatically temporarily turn off logging

2003-08-25 Thread dean
thanks, sounds like a good idea. I think that will work. dean > No idea, but a few thoughts: > - don´t call perform(); instead call execute() > - create a new Project instance with no loggers and call > move.setProject(noLoggerProject) > - maybe you can do something with the Redirector class > >

RE: how to programatically temporarily turn off logging

2003-08-25 Thread Dominique Devienne
A little hackish, but this works... Redirects the INFO output to VERBOSE. --DD /** Silent version of . */ private static class SilentExpand extends Expand { public void log(String msg) { super.log(msg, Project.MSG_VERBOSE); } public void log(String msg, int leve

RE: how to programatically temporarily turn off logging

2003-08-25 Thread Jan . Materne
No idea, but a few thoughts: - don´t call perform(); instead call execute() - create a new Project instance with no loggers and call move.setProject(noLoggerProject) - maybe you can do something with the Redirector class Jan > -Original Message- > From: Dean Hiller [mailto:[EMAIL PROT