generated from root/miduo_server
添加日志
parent
e7ec4ec9c6
commit
63a45bace0
|
@ -1,5 +1,7 @@
|
|||
package com.jmfy.utils;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
|
@ -9,10 +11,15 @@ import java.util.List;
|
|||
|
||||
public class TXTUtils {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(TXTUtils.class);
|
||||
|
||||
public static void writeToTxt(List list, String path) throws IOException {
|
||||
|
||||
FileWriter in = null;
|
||||
File file = new File(path);
|
||||
if (!file.exists()) {
|
||||
LOGGER.info("writeToTxt {}", path);
|
||||
// file.mkdirs();
|
||||
file.createNewFile();
|
||||
}
|
||||
in = new FileWriter(file, true);
|
||||
|
|
Loading…
Reference in New Issue