Package com.cisco.oss.foundation.logging

Examples of com.cisco.oss.foundation.logging.FoundationLof4jLoggingEvent


  @Override
  public void format(LoggingEvent event, StringBuffer toAppendTo) {
    boolean appended = false;
    if (event instanceof FoundationLof4jLoggingEvent) { // So we can call get marker
      FoundationLof4jLoggingEvent foundationLof4jLoggingEvent = (FoundationLof4jLoggingEvent) event;

      Marker marker = foundationLof4jLoggingEvent.getSlf4jMarker();

      if (marker instanceof FoundationLoggingMarker) { // So this converter may
                            // uses internal pattern
                            // that is composed
                            // layout of %u{}

        FoundationLoggingMarker foundationMarker = (FoundationLoggingMarker) marker;

        String pattern = foundationMarker.getFormatter().getFormat(foundationLof4jLoggingEvent.getAppenderName());
       
        if (pattern != null) { // only if we have pattern from one of
                    // two options
          if (layoutsMap.get(pattern) == null) {
            layoutsMap.put(pattern, new FoundationLoggingPatternLayout(pattern));
View Full Code Here


   */
  @Override
  public void format(final LoggingEvent event, final StringBuffer toAppendTo) {
   
    if(event instanceof FoundationLof4jLoggingEvent){
      FoundationLof4jLoggingEvent foundationLof4jLoggingEvent = (FoundationLof4jLoggingEvent)event;
     
      Marker marker = foundationLof4jLoggingEvent.getSlf4jMarker();
     
      marker.getName();
     
      if(marker instanceof FoundationLoggingMarker){
        FoundationLoggingMarker foundationLoggingMarker = (FoundationLoggingMarker)marker;
View Full Code Here

   */
  @Override
  public void format(final LoggingEvent event, final StringBuffer toAppendTo) {
   
    if(event instanceof FoundationLof4jLoggingEvent){
      FoundationLof4jLoggingEvent foundationLof4jLoggingEvent = (FoundationLof4jLoggingEvent)event;
     
      Marker marker = foundationLof4jLoggingEvent.getMarker();
     
      marker.getName();
     
      if(marker instanceof FoundationLoggingMarker){
        FoundationLoggingMarker foundationLoggingMarker = (FoundationLoggingMarker)marker;
View Full Code Here

  @Override
  public void format(LoggingEvent event, StringBuffer toAppendTo) {
    boolean appended = false;
    if (event instanceof FoundationLof4jLoggingEvent) { // So we can call get marker
      FoundationLof4jLoggingEvent foundationLof4jLoggingEvent = (FoundationLof4jLoggingEvent) event;

      Marker marker = foundationLof4jLoggingEvent.getMarker();

      if (marker instanceof FoundationLoggingMarker) { // So this converter may
                            // uses internal pattern
                            // that is composed
                            // layout of %u{}
View Full Code Here

      // definitely want to avoid rolling here whilst a file roll event is still being handled
      super.subAppend(event);
    } else {

      if(event instanceof FoundationLof4jLoggingEvent){
        FoundationLof4jLoggingEvent foundationLof4jLoggingEvent = (FoundationLof4jLoggingEvent)event;
        foundationLof4jLoggingEvent.setAppenderName(this.getName());
      }
     
      this.rollFile(event);
      super.subAppend(event);
    }
View Full Code Here

TOP

Related Classes of com.cisco.oss.foundation.logging.FoundationLof4jLoggingEvent

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.