1 package org.jzonic.jlo.processor; 2 3 4 import org.jzonic.jlo.LogEvent; 5 import org.jzonic.jlo.LogGenerator; 6 import org.jzonic.jlo.LogRecord; 7 14 public class DirectLogProcessor extends AbstractLogProcessor { 15 16 19 public DirectLogProcessor() { 20 } 21 22 23 34 public void processEvent(LogGenerator lg,LogRecord lr) { 35 LogEvent le = new LogEvent(lg.getHandler(), lg.getFormatter(), lr); 36 handlePipes(le); 37 if ( lg.getFilter() != null ) { 38 if ( lg.getFilter().match(lr.getMessage() )) { 39 handle(le); 40 } 41 } 42 else { 43 handle(le); 44 } 45 handleSpecialChannels(lr); 46 } 47 48 51 public void flush() { 52 } 53 54 public String getProcessorName() { 55 return "DirectLogProcessor"; 56 } 57 58 } 59 | Popular Tags |