/** * Set the owning context. The owning context cannot be set more than * once. */ public void setLoggerContext(LoggerContext context) { super.setContext(context); }
public void setContext(Context context) { // check that the context is of type LoggerContext. Otherwise, throw an exception // Context == null is a degenerate case but nonetheless permitted. if (context instanceof LoggerContext || context == null) { super.setContext(context); } else { throw new IllegalArgumentException("LoggerContextAwareBase only accepts contexts of type c.l.classic.LoggerContext"); } }
public static void addStatus(Status status) { ILoggerFactory iLoggerFactory = LoggerFactory.getILoggerFactory(); if (iLoggerFactory instanceof LoggerContext) { ContextAwareBase contextAwareBase = new ContextAwareBase(); LoggerContext loggerContext = (LoggerContext) iLoggerFactory; contextAwareBase.setContext(loggerContext); contextAwareBase.addStatus(status); } } }
@Override public void contextDestroyed(ServletContextEvent sce) { ILoggerFactory iLoggerFactory = LoggerFactory.getILoggerFactory(); if (iLoggerFactory instanceof LoggerContext) { LoggerContext loggerContext = (LoggerContext) iLoggerFactory; contextAwareBase.setContext(loggerContext); StatusViaSLF4JLoggerFactory.addInfo("About to stop " + loggerContext.getClass().getCanonicalName() + " [" + loggerContext.getName() + "]", this); loggerContext.stop(); } }
/** * Set the owning context. The owning context cannot be set more than * once. */ public void setLoggerContext(LoggerContext context) { super.setContext(context); }
public void setContext(Context context) { cab.setContext(context); }
public void setContext(Context context) { // check that the context is of type LoggerContext. Otherwise, throw an exception // Context == null is a degenerate case but nonetheless permitted. if(context instanceof LoggerContext || context == null) { super.setContext(context); } else { throw new IllegalArgumentException("LoggerContextAwareBase only accepts contexts of type c.l.classic.LoggerContext"); } }
/** * Set the owning context. The owning context cannot be set more than * once. */ public void setLoggerContext(LoggerContext context) { super.setContext(context); }
/** * Set the owning context. The owning context cannot be set more than * once. */ public void setLoggerContext(LoggerContext context) { super.setContext(context); }
/** * Set the owning context. The owning context cannot be set more than * once. */ public void setLoggerContext(LoggerContext context) { super.setContext(context); }
public void setContext(Context context) { // check that the context is of type LoggerContext. Otherwise, throw an exception // Context == null is a degenarate case but nonetheless permitted. if(context instanceof LoggerContext || context == null) { super.setContext(context); } else { throw new IllegalArgumentException("LoggerContextAwareBase only accepts contexts of type c.l.classic.LoggerContext"); } }
public void setContext(Context context) { // check that the context is of type LoggerContext. Otherwise, throw an exception // Context == null is a degenerate case but nonetheless permitted. if(context instanceof LoggerContext || context == null) { super.setContext(context); } else { throw new IllegalArgumentException("LoggerContextAwareBase only accepts contexts of type c.l.classic.LoggerContext"); } }
public void setContext(Context context) { // check that the context is of type LoggerContext. Otherwise, throw an exception // Context == null is a degenerate case but nonetheless permitted. if (context instanceof LoggerContext || context == null) { super.setContext(context); } else { throw new IllegalArgumentException("LoggerContextAwareBase only accepts contexts of type c.l.classic.LoggerContext"); } }
public void setContext(Context context) { // check that the context is of type LoggerContext. Otherwise, throw an exception // Context == null is a degenerate case but nonetheless permitted. if (context instanceof LoggerContext || context == null) { super.setContext(context); } else { throw new IllegalArgumentException("LoggerContextAwareBase only accepts contexts of type c.l.classic.LoggerContext"); } }
@Override public void setContext(Context context) { contextInjected = true; super.setContext(context); }
@Override public void setContext(Context context) { throwableProxyConverter.setContext(context); super.setContext(context); }
public static void addStatus(Status status) { ILoggerFactory iLoggerFactory = LoggerFactory.getILoggerFactory(); if (iLoggerFactory instanceof LoggerContext) { ContextAwareBase contextAwareBase = new ContextAwareBase(); LoggerContext loggerContext = (LoggerContext) iLoggerFactory; contextAwareBase.setContext(loggerContext); contextAwareBase.addStatus(status); } } }
public static void addStatus(Status status) { ILoggerFactory iLoggerFactory = LoggerFactory.getILoggerFactory(); if (iLoggerFactory instanceof LoggerContext) { ContextAwareBase contextAwareBase = new ContextAwareBase(); LoggerContext loggerContext = (LoggerContext) iLoggerFactory; contextAwareBase.setContext(loggerContext); contextAwareBase.addStatus(status); } } }
@Override public void contextDestroyed(ServletContextEvent sce) { ILoggerFactory iLoggerFactory = LoggerFactory.getILoggerFactory(); if (iLoggerFactory instanceof LoggerContext) { LoggerContext loggerContext = (LoggerContext) iLoggerFactory; contextAwareBase.setContext(loggerContext); StatusViaSLF4JLoggerFactory.addInfo("About to stop " + loggerContext.getClass().getCanonicalName() + " [" + loggerContext.getName() + "]", this); loggerContext.stop(); } }
@Override public void contextDestroyed(ServletContextEvent sce) { ILoggerFactory iLoggerFactory = LoggerFactory.getILoggerFactory(); if (iLoggerFactory instanceof LoggerContext) { LoggerContext loggerContext = (LoggerContext) iLoggerFactory; contextAwareBase.setContext(loggerContext); StatusViaSLF4JLoggerFactory.addInfo("About to stop " + loggerContext.getClass().getCanonicalName() + " [" + loggerContext.getName() + "]", this); loggerContext.stop(); } }