protected Log getLogger() { return LogFactory.getLog(LogCategories.TRIBESTREAM.createChild("accesslog").getName()); }
/** * Creates a child category of this category. <B>Use this method sparingly</B>. This method is to be used in only those circumstances where the name of the * category is not known upfront and is a derived name. If you know the name of the category, it is highly recommended to add a static final field * of type LogCategory in this class * * @param child String * @return - LogCategory */ public LogCategory createChild(final String child) { return new LogCategory(this.name + "." + child); }
@Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final LoggerKey loggerKey = LoggerKey.class.cast(o); return category.equals(loggerKey.category) && baseName.equals(loggerKey.baseName); }
public LoggingPrintWriter(final String category) { super(System.err); logger = Logger.getInstance(LogCategory.OPENEJB.createChild(category), LoggingPrintWriter.class.getName()); }
public Slf4jLogStream(final LogCategory logCategory) { log = LoggerFactory.getLogger(logCategory.getName()); }
protected LoggerKey(final LogCategory category, final String baseName) { this.category = category; this.baseName = baseName; int result = category.hashCode(); hash = 31 * result + baseName.hashCode(); }
public Logger getChildLogger(final String child) { return Logger.getInstance(this.category.createChild(child), this.baseName); }
public Log4jLogStream(final LogCategory logCategory) { logger = Logger.getLogger(logCategory.getName()); }
public OptionsLog() { this(Logger.getInstance(LogCategory.OPENEJB.createChild("options"), OptionsLog.class)); }
public Log4jLogStream(LogCategory logCategory) { logger = org.apache.log4j.Logger.getLogger(logCategory.getName()); }
/** * Creates a child category of this category. <B>Use this method sparingly</B>. This method is to be used in only those circumstances where the name of the * category is not known upfront and is a derived name. If you know the name of the category, it is highly recommended to add a static final field * of type LogCategory in this class * @param child * @return - LogCategory */ public LogCategory createChild(String child){ return new LogCategory(this.name+"."+child); }
public LoggingPrintWriter(final String category) { super(System.err); logger = Logger.getInstance(LogCategory.OPENEJB.createChild(category), LoggingPrintWriter.class.getName()); }
public JuliLogStream(LogCategory logCategory) { logger = Logger.getLogger(logCategory.getName()); }
/** * Creates a child category of this category. <B>Use this method sparingly</B>. This method is to be used in only those circumstances where the name of the * category is not known upfront and is a derived name. If you know the name of the category, it is highly recommended to add a static final field * of type LogCategory in this class * * @param child String * @return - LogCategory */ public LogCategory createChild(final String child) { return new LogCategory(this.name + "." + child); }
public OptionsLog() { this(Logger.getInstance(LogCategory.OPENEJB.createChild("options"), OptionsLog.class)); }
public Slf4jLogStream(final LogCategory logCategory) { log = LoggerFactory.getLogger(logCategory.getName()); }
public Logger getChildLogger(final String child) { return Logger.getInstance(this.category.createChild(child), this.baseName); }
public Log4jLogStream(final LogCategory logCategory) { logger = Logger.getLogger(logCategory.getName()); }
public Logger getChildLogger(final String child) { return Logger.getInstance(this.category.createChild(child), this.baseName); }
public FaillingObservers() { extensionsLogger = Logger.getLogger(LogCategory.OPENEJB.getName()); openejbHandler = new Handler() { @Override public void publish(final LogRecord record) { final Throwable thrown = record.getThrown(); if (Level.SEVERE == record.getLevel() && record.getMessage() != null && record.getMessage().startsWith("Extension construction failed") && thrown != null && failingErrors.remove(thrown)) { makeFail(thrown); } } @Override public void flush() { // no-op } @Override public void close() throws SecurityException { // no-op } }; extensionsLogger.addHandler(openejbHandler); }