Can i have a simple sample illustrating Logging API in JDK1.4?

Davanum Srinivas

package com.wombat;

public class Nose{
    // Obtain a suitable logger.
    private static Logger logger = Logger.getLogger("com.wombat.nose");
    public static void main(String argv[]){
        // Log a FINE tracing message
        logger.fine("doing stuff");
        } catch (Error ex){
            // Log the error
            logger.log(Level.WARNING,"trouble sneezing",ex);
More information can be found at: JavaTM Logging Overview
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact