Install or re-install the
CommonHandler for the
of the
specified name and its childs. The parent logger name is typically
"org.geotools" ,
but could also be
"" if events from other packages (including the log records from
J2SE itself) should be redirected as well.
This method should be invoked again when the logging configuration change. For example
if the Log4J configuration is dynamically changed at runtime, then this
method should be invoked again.
If this method determines that commons-logging would redirect all log events
to the java logging system, then this method do nothing and return
false .
Note that this method throws an
if the Apache
commons-logging package is not found on the classpath. For a safer alternative,
consider invoking
Logging.redirectToCommonsLogging instead.
Parameters: name - The logger name, usually "" or "org.geotools" . true if the adapter has been installed or re-installed, or false if this method did nothing. throws: NoClassDefFoundError - if the Apache commons-logging package was not found on theclasspath. See Also: Logging.redirectToCommonsLogging |