type: 'stdout',
layout: {
type: "pattern",
- pattern: "[%d{ISO8601}] [%p] - %f:%l %m%n --", // Pattern including file and line number
+ // %highlight{} conversion word for colorization
+ pattern: '%[%d{yyyy-MM-dd hh:mm:ss.SSS} %p %c%] %m%n',
+ // Default highlight colors for common levels (optional, but good practice)
+ // You can customize these or add more specific level-color mappings
highlight: {
FATAL: 'red',
ERROR: 'red',
DEBUG: 'blue',
TRACE: 'cyan'
}
+ /*pattern: "[%d{ISO8601}] [%p] - %f:%l %m%n --", // Pattern including file and line number
+ highlight: {
+ FATAL: 'red',
+ ERROR: 'red',
+ WARN: 'yellow',
+ INFO: 'green',
+ DEBUG: 'blue',
+ TRACE: 'cyan'
+ }*/
},
},
errorFile: {