Thanks, John. Is the JDK logging example in your docs still valid as well?
On 2/4/14 2:09 PM, John Caron wrote:
For 4.3 do the following:
1) you need to have these jars in your application's classpath:
2) now you need a log4j.xml file, also in your classpath, heres a minimal one:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<appender name="applog" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="mylog/app.log"/>
<param name="MaxFileSize" value="10MB"/>
<param name="MaxBackupIndex" value="10"/>
this would suppress all messages except WARN and ERROR and log those to
keeping up to 10 10MB logs. So make your changes as needed.
In 4.4 we have switched to log4j2, so the config file is a bit different.
Ill try to update the web pages.
On 2/4/2014 10:47 AM, Don Murray (NOAA Affiliate) wrote:
What's the best way to control the logging programatically through log4j
in netCDF-Java 4.3? I have a couple of applications (IDV and RAMADDA)
that use the library and the number of INFO messages has exanded
considerably in version 4.3. What's the best way to set the logging
level or turn if off? I tried following the suggestions on this page:
but was unsuccessful. If someone has a working example, I'd apprecitate
netcdf-java mailing list
For list information or to unsubscribe, visit:
NOAA/ESRL/PSD and CIRES