init project v1.0.0

This commit is contained in:
zlt
2019-01-19 15:31:26 +08:00
parent 5c1cdaa54e
commit 19fecc3b05
728 changed files with 65634 additions and 0 deletions
@@ -0,0 +1,26 @@
package com.central.log.monitor;
import lombok.extern.slf4j.Slf4j;
/**
* 日志埋点工具类
*
* @author zlt
*/
@Slf4j
public class PointUtil {
public static final String SPLIT = "|";
/**
* 格式为:{时间}|{来源}|{对象id}|{类型}|{对象属性(以&分割)}
* 例子1:2016-07-27 23:37:23|business-center|1|user-login|ip=xxx.xxx.xx&userName=张三&userType=后台管理员
* 例子2:2016-07-27 23:37:23|file-center|c0a895e114526786450161001d1ed9|file-upload|fileName=xxx&filePath=xxx
*
* @param id 对象id
* @param type 类型
* @param message 对象属性
*/
public static void info(String id, String type, String message) {
log.info(id + SPLIT + type + SPLIT + message);
}
}