1 23 24 29 package com.sun.enterprise.admin.dottedname; 30 31 import com.sun.logging.LogDomains; 32 import java.util.logging.Logger ; 33 34 public final class DottedNameLogger 35 { 36 static Logger sLogger = Logger.getLogger( LogDomains.ADMIN_LOGGER ); 37 38 private 39 DottedNameLogger() 40 { 41 } 42 43 public static Logger 44 getInstance() 45 { 46 return( sLogger ); 47 } 48 49 public static void 50 dm( Object o ) 51 { 52 sLogger.info( o == null ? "null" : o.toString() ); 54 } 55 56 public static void 57 logException( final Exception e ) 58 { 59 if ( e instanceof DottedNameServerInfo.UnavailableException ) 60 { 61 sLogger.severe( e.toString() ); 62 } 63 else 64 { 65 sLogger.info( e.toString() ); 66 } 67 } 68 } 69 70 71 72 | Popular Tags |