1 23 24 package com.sun.jdo.spi.persistence.support.sqlstore.ejb; 25 26 import java.util.logging.Level ; 27 import java.security.AccessController ; 28 import java.security.PrivilegedAction ; 29 30 import com.sun.jdo.spi.persistence.utility.logging.LoggerFactoryJDK14; 31 import com.sun.jdo.spi.persistence.utility.logging.LoggerJDK14; 32 33 import com.sun.enterprise.server.logging.ServerLogManager; 34 import com.sun.logging.LogDomains; 35 36 41 42 public class LoggerFactoryiAS extends LoggerFactoryJDK14 { 43 44 46 protected String DOMAIN_ROOT = "javax.enterprise.resource.jdo."; 48 49 public LoggerFactoryiAS() { 50 } 51 52 53 protected String getDomainRoot() { 54 return DOMAIN_ROOT; 55 } 56 57 69 protected LoggerJDK14 createLogger (final String absoluteLoggerName, 70 final String bundleName) { 71 return (LoggerJDK14) AccessController.doPrivileged ( 72 new PrivilegedAction () { 73 public Object run () { 74 LoggerJDK14 result = new LoggerJDK14(absoluteLoggerName, bundleName); 75 78 return result; 79 } 80 } 81 ); 82 } 83 84 87 protected void configureFileHandler(LoggerJDK14 logger) { 88 } 89 90 } 91 92 | Popular Tags |