Remove hard dependency on SLF4J
This PR removes the use of SLF4J from all non-test code. SLF4J is still directly referenced in the unit tests because of the mocking functionality we're using. We can explore refactoring that in a later PR. Resolves spring-cloud/spring-cloud-task#101
This commit is contained in:
@@ -21,7 +21,8 @@ import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.CommandLineRunner;
|
||||
@@ -52,7 +53,7 @@ public class TaskApplication {
|
||||
* A commandline runner that prints a timestamp.
|
||||
*/
|
||||
public class TimestampTask implements CommandLineRunner {
|
||||
private final org.slf4j.Logger logger = LoggerFactory.getLogger(TimestampTask.class);
|
||||
private final Log logger = LogFactory.getLog(TimestampTask.class);
|
||||
|
||||
@Autowired
|
||||
private TimestampTaskProperties config;
|
||||
|
||||
Reference in New Issue
Block a user