You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
530 B
19 lines
530 B
package com.platform.service.impl;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import com.platform.service.ILogRead;
|
|
import com.platform.utils.Configs;
|
|
import com.platform.utils.FileOperateHelper;
|
|
|
|
@Service(value = "logReadService")
|
|
public class LogReadServiceImpl implements ILogRead {
|
|
|
|
|
|
@Override
|
|
public String readLog(String filename) throws Exception {
|
|
String result = FileOperateHelper.fileReader(Configs.EXTRACT_LOG_LOCALTION + "J" + filename.replace("-", "_")+".log");
|
|
return result;
|
|
}
|
|
|
|
} |