Formatting of log message using log4j
I need to log the messages to a file, where each attributes of the log message should be of constant length.
param1 param2 param3 [line 1]
pot test serve [ line 2]
The message attributes passed to the logger api is just a space seperated like
logMessage("param1 param2 param3"); logMessage("pot test serve");
I searched in log4j manuals, but could not figure out how to parse the %m so that to pad extra spaces to make the output as desired.
Any pointer as how to proceed ? .