RunLogMessage.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. package com.jd.platform.jlog.common.model;
  2. import java.util.Map;
  3. /**
  4. * className:RunLogMessage
  5. * description:
  6. *
  7. * @author wuweifeng
  8. * @version 1.0.0
  9. */
  10. public class RunLogMessage {
  11. /**
  12. * tracerId
  13. */
  14. private long tracerId;
  15. /**
  16. * 时间创建时间
  17. */
  18. private long createTime;
  19. /**
  20. * 日志内容
  21. */
  22. private Object content;
  23. /**
  24. * info、error
  25. */
  26. private String logLevel;
  27. /**
  28. * 类名
  29. */
  30. private String className;
  31. /**
  32. * 方法名
  33. */
  34. private String methodName;
  35. /**
  36. * 线程名
  37. */
  38. private String threadName;
  39. /**
  40. * 标签map
  41. */
  42. private Map<String,Object> tagMap;
  43. public long getTracerId() {
  44. return tracerId;
  45. }
  46. public void setTracerId(long tracerId) {
  47. this.tracerId = tracerId;
  48. }
  49. public long getCreateTime() {
  50. return createTime;
  51. }
  52. public void setCreateTime(long createTime) {
  53. this.createTime = createTime;
  54. }
  55. public Object getContent() {
  56. return content;
  57. }
  58. public void setContent(Object content) {
  59. this.content = content;
  60. }
  61. public String getLogLevel() {
  62. return logLevel;
  63. }
  64. public void setLogLevel(String logLevel) {
  65. this.logLevel = logLevel;
  66. }
  67. public String getClassName() {
  68. return className;
  69. }
  70. public void setClassName(String className) {
  71. this.className = className;
  72. }
  73. public String getMethodName() {
  74. return methodName;
  75. }
  76. public void setMethodName(String methodName) {
  77. this.methodName = methodName;
  78. }
  79. public String getThreadName() {
  80. return threadName;
  81. }
  82. public void setThreadName(String threadName) {
  83. this.threadName = threadName;
  84. }
  85. public Map<String, Object> getTagMap() {
  86. return tagMap;
  87. }
  88. public void setTagMap(Map<String, Object> tagMap) {
  89. this.tagMap = tagMap;
  90. }
  91. @Override
  92. public String toString() {
  93. return "RunLogMessage{" +
  94. "tracerId=" + tracerId +
  95. ", createTime=" + createTime +
  96. ", content=" + content +
  97. ", logLevel='" + logLevel + '\'' +
  98. ", className='" + className + '\'' +
  99. ", methodName='" + methodName + '\'' +
  100. ", threadName='" + threadName + '\'' +
  101. ", tagMap=" + tagMap +
  102. '}';
  103. }
  104. }