Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package cl.alma.camel.acslog;
 
 import  com.cosylab.logging.engine.log.ILogEntry;
 import  com.cosylab.logging.engine.log.LogEntry;
 import  com.cosylab.logging.engine.log.LogField;
 import  com.cosylab.logging.engine.log.LogTypeHelper;
 
 public class ACSLogEntryWrapper extends LogEntry {
 	
	private String origin = "";
	public ACSLogEntryWrapper(ILogEntry logEntryString origin) {
		super(
			(Long)logEntry.getField(LogField.TIMESTAMP), 
			((LogTypeHelper)logEntry.getField(LogField.ENTRYTYPE)).ordinal(), 
			(String)logEntry.getField(LogField.FILE), 
			(Integer)logEntry.getField(LogField.LINE), 
			(String)logEntry.getField(LogField.ROUTINE),
			(String)logEntry.getField(LogField.HOST), 
			(String)logEntry.getField(LogField.PROCESS), 
			(String)logEntry.getField(LogField.CONTEXT),
			(String)logEntry.getField(LogField.THREAD), 
			(String)logEntry.getField(LogField.LOGID), 
			(Integer)logEntry.getField(LogField.PRIORITY), 
			(String)logEntry.getField(LogField.URI), 
			(String)logEntry.getField(LogField.STACKID), 
			(Integer)logEntry.getField(LogField.STACKLEVEL), 
			(String)logEntry.getField(LogField.LOGMESSAGE),
			(String)logEntry.getField(LogField.SOURCEOBJECT), 
			(String)logEntry.getField(LogField.AUDIENCE), 
			(String)logEntry.getField(LogField.ARRAY), 
			(String)logEntry.getField(LogField.ANTENNA), 
			logEntry.getAdditionalData());
		this.setOrigin(origin);
	}
	public String getOrigin() {
		return ;
	}
	public void setOrigin(String origin) {
		this. = origin;
	}
New to GrepCode? Check out our FAQ X