String getFullyQualifiedName(PaxLoggingEvent event) { return event.getLocationInformation().getClassName(); } }
String getFullyQualifiedName(PaxLoggingEvent event) { return event.getLocationInformation().getClassName(); } }
String getFullyQualifiedName(PaxLoggingEvent event) { if(!event.locationInformationExists()){ return "?"; } return event.getLocationInformation().getClassName(); } }
public String convert(PaxLoggingEvent event) { PaxLocationInfo locationInfo = event.getLocationInformation(); switch(type) { /*case FULL_LOCATION_CONVERTER: return locationInfo.fullInfo;*/ case METHOD_LOCATION_CONVERTER: return locationInfo.getMethodName(); case LINE_LOCATION_CONVERTER: return locationInfo.getLineNumber(); case FILE_LOCATION_CONVERTER: return locationInfo.getFileName(); default: return null; } } }
public String convert(PaxLoggingEvent event) { PaxLocationInfo locationInfo = event.getLocationInformation(); switch(type) { /*case FULL_LOCATION_CONVERTER: return locationInfo.fullInfo;*/ case METHOD_LOCATION_CONVERTER: return locationInfo.getMethodName(); case LINE_LOCATION_CONVERTER: return locationInfo.getLineNumber(); case FILE_LOCATION_CONVERTER: return locationInfo.getFileName(); default: return null; } } }
public void doAppend( PaxLoggingEvent event ) { if (count != getTrackingCount()) { count = getTrackingCount(); appenders = getServices(); } if (appenders != null && appenders.length > 0) { // Bug in Karaf, as it expects the source to be available event.getLocationInformation(); for (Object appender : appenders) { ((PaxAppender) appender).doAppend(event); } } } }
public String convert(PaxLoggingEvent event) { if(!event.locationInformationExists()){ return "?"; } PaxLocationInfo locationInfo = event.getLocationInformation(); switch(type) { /*case FULL_LOCATION_CONVERTER: return locationInfo.fullInfo;*/ case METHOD_LOCATION_CONVERTER: return locationInfo.getMethodName(); case LINE_LOCATION_CONVERTER: return locationInfo.getLineNumber(); case FILE_LOCATION_CONVERTER: return locationInfo.getFileName(); default: return null; } } }
@SuppressWarnings("unchecked") public KarafLogEvent(PaxLoggingEvent event) { this.level = event.getLevel(); this.loggerName = event.getLoggerName(); this.message = event.getMessage(); this.threadName = event.getThreadName(); this.throwableStrRep = event.getThrowableStrRep(); this.timeStamp = event.getTimeStamp(); this.fQNOfLoggerClass = event.getFQNOfLoggerClass(); this.properties = new HashMap(event.getProperties()); this.locationInformation = event.getLocationInformation(); }
PaxLocationInfo locationInformation = event.getLocationInformation(); if (locationInformation != null) { answer.setClassName(locationInformation.getClassName());
PaxLocationInfo locationInformation = event.getLocationInformation(); if (locationInformation != null) { answer.setClassName(locationInformation.getClassName());
PaxLocationInfo locationInformation = event.getLocationInformation(); if (locationInformation != null) { answer.setClassName(locationInformation.getClassName());