File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
java/server/src/org/openqa/selenium/remote/server/log Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,12 @@ public class TerseFormatter extends Formatter {
40
40
*/
41
41
private static final String SUFFIX = " - " ;
42
42
43
+ /**
44
+ * Line separator string. This is the value of the line.separator
45
+ * property at the moment that the TerseFormatter was created.
46
+ */
47
+ private final String lineSeparator = System .getProperty ("line.separator" );
48
+
43
49
/*
44
50
* DGF - These have to be compile time constants to be used with switch
45
51
*/
@@ -83,7 +89,7 @@ public synchronized String format(final LogRecord record) {
83
89
buffer .append (record .getLoggerName ());
84
90
}
85
91
buffer .append (SUFFIX );
86
- buffer .append (formatMessage (record )).append ('\n' );
92
+ buffer .append (formatMessage (record )).append (lineSeparator );
87
93
if (record .getThrown () != null ) {
88
94
final StringWriter trace = new StringWriter ();
89
95
record .getThrown ().printStackTrace (new PrintWriter (trace ));
You can’t perform that action at this time.
0 commit comments