Removed unnecessary dependencies on org.apache.log4j
[simantics/platform.git] / bundles / org.simantics.diagram.profile / src / org / simantics / diagram / profile / view / CreateProfileAction.java
index 656159abf3cc948e36ba8f326b9268cd6f9045a6..c0fdb11e38cf11b0c53bdd51d423f0829fdd9078 100644 (file)
@@ -8,12 +8,15 @@ import org.simantics.db.common.request.WriteRequest;
 import org.simantics.db.common.utils.NameUtils;
 import org.simantics.db.common.utils.OrderedSetUtils;
 import org.simantics.db.exception.DatabaseException;
-import org.simantics.diagram.Logger;
 import org.simantics.diagram.stubs.DiagramResource;
 import org.simantics.layer0.Layer0;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 public class CreateProfileAction extends ModelledActionImpl<Resource> {
 
+       private static final Logger LOGGER = LoggerFactory.getLogger(CreateProfileAction.class);
+
        public CreateProfileAction(Resource configuration) {
                super(configuration);
        }
@@ -51,9 +54,7 @@ public class CreateProfileAction extends ModelledActionImpl<Resource> {
                        });
                
                } catch (DatabaseException e) {
-
-                       Logger.defaultLogError(e);
-                       
+                       LOGGER.error("CreateProfileAction failed", e);
                }
 
        }