|
@@ -4,13 +4,9 @@ import Utils.LogBuilder;
|
|
|
import client.LogTrackingClient;
|
|
import client.LogTrackingClient;
|
|
|
import com.nju.edu.logTracking.enums.SeecSystem;
|
|
import com.nju.edu.logTracking.enums.SeecSystem;
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
|
|
|
|
public class LogTrackingUtil {
|
|
public class LogTrackingUtil {
|
|
|
|
|
|
|
|
- @Autowired
|
|
|
|
|
- public UserService userService;
|
|
|
|
|
-
|
|
|
|
|
private static final Logger logger = LoggerUtil.getLogger(LogTrackingUtil.class);
|
|
private static final Logger logger = LoggerUtil.getLogger(LogTrackingUtil.class);
|
|
|
|
|
|
|
|
public static void log(String data, OpType opType) {
|
|
public static void log(String data, OpType opType) {
|
|
@@ -19,7 +15,7 @@ public class LogTrackingUtil {
|
|
|
.target(SeecSystem.SMART)
|
|
.target(SeecSystem.SMART)
|
|
|
.source(SeecSystem.DEVCLOUD)
|
|
.source(SeecSystem.DEVCLOUD)
|
|
|
.operationType(opType.getNum())
|
|
.operationType(opType.getNum())
|
|
|
- .data(data.concat(" uid:").concat(userService.loginUser().getId()))
|
|
|
|
|
|
|
+ .data(data)
|
|
|
.message(opType.getName()
|
|
.message(opType.getName()
|
|
|
.build();
|
|
.build();
|
|
|
LogTrackingClient
|
|
LogTrackingClient
|