Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/server/DeleteCollectionServiceImpl.java @ 1367:ab8eb2f544f2
Replaced stdout and stderr logging with log4j loggers in server classes.
flys-client/trunk@3069 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 25 Oct 2011 12:31:15 +0000 |
parents | 1dbffe4c6d12 |
children | bc06a671ef60 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/DeleteCollectionServiceImpl.java Tue Oct 25 11:07:14 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/server/DeleteCollectionServiceImpl.java Tue Oct 25 12:31:15 2011 +0000 @@ -2,6 +2,8 @@ import org.w3c.dom.Document; +import org.apache.log4j.Logger; + import de.intevation.artifacts.common.utils.ClientProtocolUtils; import de.intevation.flys.client.shared.exceptions.ServerException; @@ -16,13 +18,17 @@ extends DoCollectionAction implements DeleteCollectionService { + private static final Logger logger = + Logger.getLogger(DeleteCollectionServiceImpl.class); + + public static final String XPATH_RESULT = "/art:result/text()"; public static final String OPERATION_FAILURE = "FAILED"; public void delete(Collection c, String url) throws ServerException { - System.out.println("Delete collection: " + c.identifier()); + logger.info("Delete collection: " + c.identifier()); Document del = ClientProtocolUtils.newDeleteCollectionDocument();