File tree 2 files changed +6
-3
lines changed
logback-core/src/main/java/ch/qos/logback/core
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ public class ConsoleAppender<E> extends OutputStreamAppender<E> {
53
53
private final static String wrapSystemErr_METHOD_NAME = "wrapSystemErr" ;
54
54
private final static Class <?>[] ARGUMENT_TYPES = { PrintStream .class };
55
55
56
+ private final static String CONSOLE_APPENDER_WARNING_URL = CoreConstants .CODES_URL +"#slowConsole" ;
57
+
56
58
/**
57
59
* Sets the value of the <b>Target</b> option. Recognized values are
58
60
* "System.out" and "System.err". Any other value will be ignored.
@@ -86,7 +88,8 @@ private void targetWarn(String val) {
86
88
@ Override
87
89
public void start () {
88
90
addInfo ("BEWARE: Writing to the console can be very slow. Avoid logging to the " );
89
- addInfo ("console in production, especially in high volume systems." );
91
+ addInfo ("console in production environments, especially in high volume systems." );
92
+ addInfo ("See also " +CONSOLE_APPENDER_WARNING_URL );
90
93
OutputStream targetStream = target .getStream ();
91
94
// enable jansi only if withJansi set to true
92
95
if (withJansi ) {
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ public class CoreConstants {
44
44
public static final String LINE_SEPARATOR = System .getProperty ("line.separator" );
45
45
public static final int LINE_SEPARATOR_LEN = LINE_SEPARATOR .length ();
46
46
47
- public static final String CODES_URL = "http ://logback.qos.ch/codes.html" ;
48
- public static final String MANUAL_URL_PREFIX = "http ://logback.qos.ch/manual/" ;
47
+ public static final String CODES_URL = "https ://logback.qos.ch/codes.html" ;
48
+ public static final String MANUAL_URL_PREFIX = "https ://logback.qos.ch/manual/" ;
49
49
public static final String MORE_INFO_PREFIX = "For more information, please visit " ;
50
50
51
51
/**
You can’t perform that action at this time.
0 commit comments