Guest User

Untitled

a guest
Jan 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. @Sl4j
  2. class LogFormatter {
  3. public static String format(String taskType, String taskId, String message) {
  4. return String.format("TaskType: %s, TaskId: %s, Message: %s",
  5. taskType, taskId, message);
  6. }
  7.  
  8. log.info(LogFormatter.format(
  9. "StackOverflowTask",
  10. "StackOverflowId",
  11. "A long long message exceeding 50 characters"));
  12.  
  13. class StackOverflowTaskLogFormatter extends LogFormatter
  14.  
  15. public void formatStackOverflowTaskLog()
Add Comment
Please, Sign In to add comment