comparison flys-client/src/main/java/de/intevation/flys/client/server/AddArtifactServiceImpl.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 478a571f1f94
children bc06a671ef60
comparison
equal deleted inserted replaced
1366:d0eb2202ffbe 1367:ab8eb2f544f2
1 package de.intevation.flys.client.server; 1 package de.intevation.flys.client.server;
2
3 import org.apache.log4j.Logger;
2 4
3 import de.intevation.flys.client.shared.exceptions.ServerException; 5 import de.intevation.flys.client.shared.exceptions.ServerException;
4 import de.intevation.flys.client.shared.model.Artifact; 6 import de.intevation.flys.client.shared.model.Artifact;
5 import de.intevation.flys.client.shared.model.Collection; 7 import de.intevation.flys.client.shared.model.Collection;
6 import de.intevation.flys.client.client.services.AddArtifactService; 8 import de.intevation.flys.client.client.services.AddArtifactService;
11 */ 13 */
12 public class AddArtifactServiceImpl 14 public class AddArtifactServiceImpl
13 extends DescribeCollectionServiceImpl 15 extends DescribeCollectionServiceImpl
14 implements AddArtifactService 16 implements AddArtifactService
15 { 17 {
18 private static final Logger logger =
19 Logger.getLogger(AddArtifactService.class);
20
21
16 public Collection add( 22 public Collection add(
17 Collection collection, 23 Collection collection,
18 Artifact artifact, 24 Artifact artifact,
19 String url, 25 String url,
20 String locale) 26 String locale)
21 throws ServerException 27 throws ServerException
22 { 28 {
23 System.out.println("AddArtifactServiceImpl.add"); 29 logger.info("AddArtifactServiceImpl.add");
24 30
25 return CollectionHelper.addArtifact(collection, artifact, url, locale); 31 return CollectionHelper.addArtifact(collection, artifact, url, locale);
26 } 32 }
27 } 33 }
28 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 34 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org