It's all straight java.util.logging logging stuff. Thus, something like:
Logger log = Logger.getLogger("org.apache.cxf");
for (Handler handler : log.getHandlers()) {
if (handler instanceof ConsoleHandler) {
handler.setLevel(Level.WARNING);
handler.setFormatter(new SimpleFormatter());
}
}
should be it.
Dan
On Monday 17 November 2008 12:44:51 pm nmt999 wrote:
> I currently use a properties file to control cxf logging when the
> application runs.
>
> java.util.logging.ConsoleHandler.level = INFO
> java.util.logging.ConsoleHandler.formatter =
> java.util.logging.SimpleFormatter
>
> However within the developed application if i want to override the
> settings of the config using
>
> System.setProperty("java.util.logging.ConsoleHandler.level", "WARNING");
> System.setProperty("java.util.logging.ConsoleHandler.formatter",
> "java.util.logging.SimpleFormatter");
>
> it doesn't see to work. Is there a way i can override in the application
> the cxf logging properties set in the config file.
>
> Regards
> nmt
--
Daniel Kulp
[EMAIL PROTECTED]
http://dankulp.com/blog