Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Sl4j
- class LogFormatter {
- public static String format(String taskType, String taskId, String message) {
- return String.format("TaskType: %s, TaskId: %s, Message: %s",
- taskType, taskId, message);
- }
- log.info(LogFormatter.format(
- "StackOverflowTask",
- "StackOverflowId",
- "A long long message exceeding 50 characters"));
- class StackOverflowTaskLogFormatter extends LogFormatter
- public void formatStackOverflowTaskLog()
Add Comment
Please, Sign In to add comment