Package org.slf4j.impl

Examples of org.slf4j.impl.StaticLoggerBinder


    if (GET_SINGLETON_METHOD == GET_SINGLETON_EXISTS) {
      return StaticLoggerBinder.getSingleton();
    }

    try {
      StaticLoggerBinder singleton = StaticLoggerBinder.getSingleton();
      GET_SINGLETON_METHOD = GET_SINGLETON_EXISTS;
      return singleton;
    } catch (NoSuchMethodError nsme) {
      GET_SINGLETON_METHOD = GET_SINGLETON_INEXISTENT;
      return StaticLoggerBinder.SINGLETON;
View Full Code Here


    if(GET_SINGLETON_METHOD == GET_SINGLETON_EXISTS) {
      return StaticLoggerBinder.getSingleton();
    }
   
    try  {
      StaticLoggerBinder singleton = StaticLoggerBinder.getSingleton();
      GET_SINGLETON_METHOD = GET_SINGLETON_EXISTS;
      return singleton;
    } catch(NoSuchMethodError nsme) {
      GET_SINGLETON_METHOD = GET_SINGLETON_INEXISTENT;
      return StaticLoggerBinder.SINGLETON;
View Full Code Here

        for (Method method : methods) {
          //ensure method exists
          if (method.getName().equals("getContextSelector")) {
            //System.out.println("Logger context selector method found");
            //get the context selector
            StaticLoggerBinder binder = StaticLoggerBinder.getSingleton();
            Method m1 = binder.getClass().getMethod("getContextSelector", (Class[]) null);
            ContextSelector selector = (ContextSelector) m1.invoke(binder, (Object[]) null);
            //get the context for the given context name or default if null
            LoggerContext ctx = null;
            if (contextName != null && contextName.length() > 0) {
              ctx = selector.getLoggerContext(contextName);
View Full Code Here

      for (Method method : methods) {
        //ensure method exists
        if (method.getName().equals("getContextSelector")) {
          //System.out.println("Logger context selector method found");
          //get the context selector
          StaticLoggerBinder binder = StaticLoggerBinder.getSingleton();
          Method m1 = binder.getClass().getMethod("getContextSelector", (Class[]) null);
          ContextSelector selector = (ContextSelector) m1.invoke(binder, (Object[]) null);
          //get the context for the given context name or default if null
          LoggerContext ctx = null;
          if (contextName != null && contextName.length() > 0) {
            ctx = selector.getLoggerContext(contextName);
View Full Code Here

    return logger;
  }

  public static ContextSelector getContextSelector() {
    ContextSelector selector = null;
    StaticLoggerBinder binder = StaticLoggerBinder.getSingleton();
    try {
      Method m1 = binder.getClass().getMethod("getContextSelector", (Class[]) null);
      selector = (ContextSelector) m1.invoke(binder, (Object[]) null);
    } catch (Exception e) {
      System.err.printf("Exception %s", e.getMessage());
    }
    return selector;
View Full Code Here

    if (GET_SINGLETON_METHOD == GET_SINGLETON_EXISTS) {
      return StaticLoggerBinder.getSingleton();
    }

    try {
      StaticLoggerBinder singleton = StaticLoggerBinder.getSingleton();
      GET_SINGLETON_METHOD = GET_SINGLETON_EXISTS;
      return singleton;
    } catch (NoSuchMethodError nsme) {
      GET_SINGLETON_METHOD = GET_SINGLETON_INEXISTENT;
      return StaticLoggerBinder.SINGLETON;
View Full Code Here

TOP

Related Classes of org.slf4j.impl.StaticLoggerBinder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.