File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
logback-core/src/main/java/ch/qos/logback/core Expand file tree Collapse file tree 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> {
5353 private final static String wrapSystemErr_METHOD_NAME = "wrapSystemErr" ;
5454 private final static Class <?>[] ARGUMENT_TYPES = { PrintStream .class };
5555
56+ private final static String CONSOLE_APPENDER_WARNING_URL = CoreConstants .CODES_URL +"#slowConsole" ;
57+
5658 /**
5759 * Sets the value of the <b>Target</b> option. Recognized values are
5860 * "System.out" and "System.err". Any other value will be ignored.
@@ -86,7 +88,8 @@ private void targetWarn(String val) {
8688 @ Override
8789 public void start () {
8890 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 );
9093 OutputStream targetStream = target .getStream ();
9194 // enable jansi only if withJansi set to true
9295 if (withJansi ) {
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ public class CoreConstants {
4444 public static final String LINE_SEPARATOR = System .getProperty ("line.separator" );
4545 public static final int LINE_SEPARATOR_LEN = LINE_SEPARATOR .length ();
4646
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/" ;
4949 public static final String MORE_INFO_PREFIX = "For more information, please visit " ;
5050
5151 /**
You can’t perform that action at this time.
0 commit comments