]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.simple/src/main/java/org/argeo/slc/log4j/SlcExecutionAppender.java
Improve logging
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.simple / src / main / java / org / argeo / slc / log4j / SlcExecutionAppender.java
index a40c98e5ac29cc2320e9b78a068f54bc139847b9..880aefef1f51b27e3a4a7100e6407629495bc018 100644 (file)
@@ -26,7 +26,7 @@ import org.apache.log4j.PatternLayout;
 import org.apache.log4j.spi.LoggingEvent;
 import org.argeo.slc.core.execution.ExecutionThread;
 import org.argeo.slc.core.execution.ProcessThreadGroup;
-import org.argeo.slc.process.SlcExecutionStep;
+import org.argeo.slc.execution.ExecutionStep;
 import org.springframework.beans.factory.DisposableBean;
 import org.springframework.beans.factory.InitializingBean;
 
@@ -96,20 +96,20 @@ public class SlcExecutionAppender extends AppenderSkeleton implements
                        final String type;
                        if (event.getLevel().equals(Level.ERROR)
                                        || event.getLevel().equals(Level.FATAL))
-                               type = SlcExecutionStep.ERROR;
+                               type = ExecutionStep.ERROR;
                        else if (event.getLevel().equals(Level.WARN))
-                               type = SlcExecutionStep.WARNING;
+                               type = ExecutionStep.WARNING;
                        else if (event.getLevel().equals(Level.INFO))
-                               type = SlcExecutionStep.INFO;
+                               type = ExecutionStep.INFO;
                        else if (event.getLevel().equals(Level.DEBUG))
-                               type = SlcExecutionStep.DEBUG;
+                               type = ExecutionStep.DEBUG;
                        else if (event.getLevel().equals(Level.TRACE))
-                               type = SlcExecutionStep.TRACE;
+                               type = ExecutionStep.TRACE;
                        else
-                               type = SlcExecutionStep.INFO;
+                               type = ExecutionStep.INFO;
 
-                       SlcExecutionStep step = new SlcExecutionStep(new Date(event
-                                       .getTimeStamp()), type, layout.format(event));
+                       ExecutionStep step = new ExecutionStep(new Date(
+                                       event.getTimeStamp()), type, layout.format(event));
 
                        try {
                                dispatching.set(true);