Skip to content

Commit c5de5c9

Browse files
committed
Update Javadoc of LogFormatUtils
Closes gh-27632
1 parent ff1485f commit c5de5c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-core/src/main/java/org/springframework/core/log/LogFormatUtils.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@
3636
public abstract class LogFormatUtils {
3737

3838
/**
39-
* Variant of {@link #formatValue(Object, int, boolean)} and a convenience
40-
* method that truncates at 100 characters when {@code limitLength} is set.
39+
* Convenience variant of {@link #formatValue(Object, int, boolean)} that
40+
* limits the length of a log message to 100 characters and also replaces
41+
* newline characters if {@code limitLength} is set to "true".
4142
* @param value the value to format
4243
* @param limitLength whether to truncate the value at a length of 100
4344
* @return the formatted value

0 commit comments

Comments
 (0)