Package org.apache.log4j.spi

Examples of org.apache.log4j.spi.RendererSupport


      } else if (key.startsWith(RENDERER_PREFIX)) {
        String renderedClass = key.substring(RENDERER_PREFIX.length());
        String renderingClass = OptionConverter.findAndSubst(key, props);

        if (repository instanceof RendererSupport) {
          RendererSupport rs = (RendererSupport) repository;
          RendererMap rm = rs.getRendererMap();
          rm.addRenderer(renderedClass, renderingClass);
        }
      }
    }
  }
View Full Code Here


        renderedMessage = (String) message;
    } else {
   LoggerRepository repository = logger.getLoggerRepository();

   if(repository instanceof RendererSupport) {
     RendererSupport rs = (RendererSupport) repository;
     renderedMessage= rs.getRendererMap().findAndRender(message);
   } else {
     renderedMessage = message.toString();
   }
       }
     }
View Full Code Here

      } else if (key.startsWith(RENDERER_PREFIX)) {
        String renderedClass = key.substring(RENDERER_PREFIX.length());
        String renderingClass = OptionConverter.findAndSubst(key, props);

        if (repository instanceof RendererSupport) {
          RendererSupport rs = (RendererSupport) repository;
          RendererMap rm = rs.getRendererMap();
          rm.addRenderer(renderedClass, renderingClass);
        }
      }
    }
  }
View Full Code Here

      } else if (key.startsWith(RENDERER_PREFIX)) {
        String renderedClass = key.substring(RENDERER_PREFIX.length());
        String renderingClass = OptionConverter.findAndSubst(key, props);

        if (repository instanceof RendererSupport) {
          RendererSupport rs = (RendererSupport) repository;
          RendererMap rm = rs.getRendererMap();
          rm.addRenderer(renderedClass, renderingClass);
        }
      }
    }
  }
View Full Code Here

   renderedMessage = (String) message;
       else {
   LoggerRepository repository = logger.getLoggerRepository();

   if(repository instanceof RendererSupport) {
     RendererSupport rs = (RendererSupport) repository;
     renderedMessage= rs.getRendererMap().findAndRender(message);
   } else {
     renderedMessage = message.toString();
   }
       }
     }
View Full Code Here

TOP

Related Classes of org.apache.log4j.spi.RendererSupport

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.