Removed unnecessary dependencies on org.apache.log4j
[simantics/platform.git] / bundles / org.simantics.diagram.profile / src / org / simantics / diagram / profile / view / CreateStyleAction.java
index de0734156f63057f3f6d82806c5b98c8fd23a16d..6cda70f2dbf9353bee42cdf525f762cbbf586e21 100644 (file)
@@ -7,13 +7,16 @@ import org.simantics.db.WriteGraph;
 import org.simantics.db.common.request.WriteRequest;
 import org.simantics.db.common.utils.NameUtils;
 import org.simantics.db.exception.DatabaseException;
-import org.simantics.diagram.Logger;
 import org.simantics.diagram.stubs.DiagramResource;
 import org.simantics.layer0.Layer0;
 import org.simantics.operation.Layer0X;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 public class CreateStyleAction extends ModelledActionImpl<Resource> {
 
+       private static final Logger LOGGER = LoggerFactory.getLogger(CreateStyleAction.class);
+
        public CreateStyleAction(Resource configuration) {
                super(configuration);
        }
@@ -49,9 +52,7 @@ public class CreateStyleAction extends ModelledActionImpl<Resource> {
                        });
                
                } catch (DatabaseException e) {
-
-                       Logger.defaultLogError(e);
-                       
+                       LOGGER.error("CreateStyleAction failed", e);
                }
 
        }