I was kind of up to that point.
The part I am stuck at is:
http://javaalmanac.com/egs/java.util.logging/HandleChange.html?l=find

When/where do I read the log file? I assume done only once. Also do I need to pass the servlet context to it just so it can find the file in a war file?
So if anyone has a web app working with JDK1.4 loggign please share.


And is this how I read it?
public static void initLogProp( ServletContext ctx) {
// lets try to use jdk1.4 logger
    try {
    LogManager lMgr = LogManager.getLogManager();
    //open the file to be used
    //for configuration
    InputStream is = ctx.getResourceAsStream("properties/log.properties");
       //read the configuration
       //into the LogManager
       lMgr.readConfiguration(is);
    } catch (IOException e) {
       System.out.println(   "log property file not found");
    } // catch
} // initLogProp

Mark Galbreath wrote:
http://javaalmanac.com/cgi-bin/search/find.pl?words=logging

Mark

-----Original Message-----
From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 12:27 PM


Does anyone have a sample (or a link) jdk1.4 logging properties and initalizer for a web app that they can share?
tia,
..V



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to