This is not a bug. Here is what the PatternLayout documentation says:
This behavior can be changed using the maximum field width modifier which is
designated by a period followed by a
decimal constant. If the data item is longer than the maximum field, then the extra
characters are removed fro
Hello all,
following is a patch that corrects the formatting behaviour of the '-' switch if the
string is longer than the maximum field length.
Current behaviour is the rightmost characters are displayed, as without the '-' switch.
Expected behaviour is the leftmost character are displayed.
---