Skip to content

Commit 521f1e0

Browse files
Replace Lombok @slf4j annotation with @log4j2 (#495)
1 parent 9d629b4 commit 521f1e0

16 files changed

Lines changed: 32 additions & 32 deletions

src/main/java/org/frankframework/flow/adapter/AdapterService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import java.nio.file.StandardOpenOption;
99
import javax.xml.parsers.ParserConfigurationException;
1010
import javax.xml.transform.TransformerException;
11-
import lombok.extern.slf4j.Slf4j;
11+
import lombok.extern.log4j.Log4j2;
1212
import org.frankframework.flow.configuration.ConfigurationFile;
1313
import org.frankframework.flow.configuration.ConfigurationXmlDTO;
1414
import org.frankframework.flow.exception.ApiException;
@@ -25,7 +25,7 @@
2525
import org.w3c.dom.Node;
2626
import org.xml.sax.SAXException;
2727

28-
@Slf4j
28+
@Log4j2
2929
@Service
3030
public class AdapterService {
3131

src/main/java/org/frankframework/flow/configuration/ConfigurationController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import java.io.IOException;
44
import javax.xml.parsers.ParserConfigurationException;
55
import javax.xml.transform.TransformerException;
6-
import lombok.extern.slf4j.Slf4j;
6+
import lombok.extern.log4j.Log4j2;
77
import org.frankframework.flow.exception.ApiException;
88
import org.springframework.http.ResponseEntity;
99
import org.springframework.web.bind.annotation.GetMapping;
@@ -16,7 +16,7 @@
1616
import org.springframework.web.bind.annotation.RestController;
1717
import org.xml.sax.SAXException;
1818

19-
@Slf4j
19+
@Log4j2
2020
@RestController
2121
@RequestMapping("/projects/{projectName}/configuration")
2222
public class ConfigurationController {

src/main/java/org/frankframework/flow/configuration/ConfigurationService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import java.nio.file.Path;
99
import javax.xml.parsers.ParserConfigurationException;
1010
import javax.xml.transform.TransformerException;
11-
import lombok.extern.slf4j.Slf4j;
11+
import lombok.extern.log4j.Log4j2;
1212
import org.frankframework.flow.exception.ApiException;
1313
import org.frankframework.flow.file.FileTreeService;
1414
import org.frankframework.flow.filesystem.FileSystemStorage;
@@ -26,7 +26,7 @@
2626
import org.xml.sax.InputSource;
2727
import org.xml.sax.SAXException;
2828

29-
@Slf4j
29+
@Log4j2
3030
@Service
3131
public class ConfigurationService {
3232

src/main/java/org/frankframework/flow/datamapper/DatamapperGeneratorService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
import java.nio.file.Files;
77
import java.nio.file.Path;
88
import javax.xml.transform.stream.StreamSource;
9-
import lombok.extern.slf4j.Slf4j;
9+
import lombok.extern.log4j.Log4j2;
1010
import net.sf.saxon.s9api.*;
1111
import org.frankframework.flow.exception.ApiException;
1212
import org.frankframework.flow.file.FileTreeService;
1313
import org.frankframework.flow.filesystem.FileSystemStorage;
1414
import org.springframework.http.HttpStatus;
1515
import org.springframework.stereotype.Service;
1616

17-
@Slf4j
17+
@Log4j2
1818
@Service
1919
public class DatamapperGeneratorService {
2020

src/main/java/org/frankframework/flow/filesystem/CloudFileSystemStorageService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
import java.util.Collections;
1212
import java.util.List;
1313
import java.util.stream.Stream;
14-
import lombok.extern.slf4j.Slf4j;
14+
import lombok.extern.log4j.Log4j2;
1515
import org.frankframework.flow.common.config.ClientSession;
1616
import org.springframework.beans.factory.annotation.Value;
1717
import org.springframework.context.annotation.Profile;
1818
import org.springframework.stereotype.Service;
1919

2020
@Service
2121
@Profile("cloud")
22-
@Slf4j
22+
@Log4j2
2323
public class CloudFileSystemStorageService implements FileSystemStorage {
2424
@Value("${frankflow.workspace.root:/tmp/frankflow/workspace}")
2525
private String baseWorkspacePath;

src/main/java/org/frankframework/flow/filesystem/WorkspaceCleanupService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
import java.time.Instant;
99
import java.time.temporal.ChronoUnit;
1010
import java.util.stream.Stream;
11-
import lombok.extern.slf4j.Slf4j;
11+
import lombok.extern.log4j.Log4j2;
1212
import org.springframework.beans.factory.annotation.Value;
1313
import org.springframework.context.annotation.Profile;
1414
import org.springframework.scheduling.annotation.Scheduled;
1515
import org.springframework.stereotype.Service;
1616
import org.springframework.util.FileSystemUtils;
1717

18-
@Slf4j
18+
@Log4j2
1919
@Service
2020
@Profile("cloud")
2121
public class WorkspaceCleanupService {

src/main/java/org/frankframework/flow/frankconfig/FrankConfigXsdController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package org.frankframework.flow.frankconfig;
22

3-
import lombok.extern.slf4j.Slf4j;
3+
import lombok.extern.log4j.Log4j2;
44
import org.springframework.http.MediaType;
55
import org.springframework.http.ResponseEntity;
66
import org.springframework.web.bind.annotation.GetMapping;
77
import org.springframework.web.bind.annotation.RequestMapping;
88
import org.springframework.web.bind.annotation.RestController;
99

10-
@Slf4j
10+
@Log4j2
1111
@RestController
1212
@RequestMapping("/xsd/frankconfig")
1313
public class FrankConfigXsdController {

src/main/java/org/frankframework/flow/frankconfig/FrankConfigXsdService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package org.frankframework.flow.frankconfig;
22

3-
import lombok.extern.slf4j.Slf4j;
3+
import lombok.extern.log4j.Log4j2;
44
import org.frankframework.flow.exception.ApiException;
55
import org.springframework.http.HttpStatus;
66
import org.springframework.stereotype.Service;
77
import org.springframework.web.client.RestClientException;
88
import org.springframework.web.client.RestTemplate;
99

10+
@Log4j2
1011
@Service
11-
@Slf4j
1212
public class FrankConfigXsdService {
1313
private static final String FRANKCONFIG_XSD_URL = "https://schemas.frankframework.org/FrankConfig.xsd";
1414

src/main/java/org/frankframework/flow/frankdoc/FrankDocController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package org.frankframework.flow.frankdoc;
22

3-
import lombok.extern.slf4j.Slf4j;
3+
import lombok.extern.log4j.Log4j2;
44
import org.springframework.http.MediaType;
55
import org.springframework.http.ResponseEntity;
66
import org.springframework.web.bind.annotation.GetMapping;
77
import org.springframework.web.bind.annotation.RequestMapping;
88
import org.springframework.web.bind.annotation.RestController;
99

10-
@Slf4j
10+
@Log4j2
1111
@RestController
1212
@RequestMapping("/json/frankdoc")
1313
public class FrankDocController {

src/main/java/org/frankframework/flow/frankdoc/FrankDocService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package org.frankframework.flow.frankdoc;
22

3-
import lombok.extern.slf4j.Slf4j;
3+
import lombok.extern.log4j.Log4j2;
44
import org.frankframework.flow.exception.ApiException;
55
import org.springframework.http.HttpStatus;
66
import org.springframework.stereotype.Service;
77
import org.springframework.web.client.RestClientException;
88
import org.springframework.web.client.RestTemplate;
99

10+
@Log4j2
1011
@Service
11-
@Slf4j
1212
public class FrankDocService {
1313
private static final String FRANKDOC_JSON_URL = "https://frankdoc.frankframework.org/js/frankdoc.json";
1414

0 commit comments

Comments
 (0)