1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- package com.yihu.wlyy.logs;
- import org.json.JSONObject;
- import org.slf4j.Logger;
- import org.slf4j.LoggerFactory;
- /**
- * 业务日志输出
- *
- * Created by lyr-pc on 2017/1/19.
- */
- public class BusinessLogs {
- // 日志输出
- private static Logger logger = LoggerFactory.getLogger(BusinessLogs.class);
- /**
- * 业务类型
- */
- public enum BusinessType {
- //注册
- register
- //签约
- , sign
- //咨询
- , consult
- //指导
- , guidance
- //健康教育
- , article
- //随访
- , followup
- //预约
- , appointment
- //标签
- , label
- }
- /**
- * 业务日志输出
- *
- * @param type 业务类别
- * @param info 日志信息
- */
- public static void info(BusinessType type, JSONObject info) {
- logger.info(type.ordinal() + " - " + info.toString());
- }
- }
|