File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,8 @@ if ${canUseRollingLogs}; then
130130
131131 LOGFILE=" ${SERVER_DIR} /log4j2.xml"
132132
133- # Always regenerate if file doesn't exist or REGENERATE_LOG4J2 is set
134- if [ ! -e " $LOGFILE " ] || isTrue " ${REGENERATE_LOG4J2:- false } " ; then
133+ # Always regenerate if file doesn't exist
134+ if [ ! -e " $LOGFILE " ] || isTrue " ${REGENERATE_LOG4J2:- true } " ; then
135135 log " Generating log4j2.xml from template in ${LOGFILE} "
136136
137137 # Generate log4j2.xml using heredoc for reliable variable substitution
@@ -142,6 +142,9 @@ if ${canUseRollingLogs}; then
142142 <Console name="SysOut" target="SYSTEM_OUT">
143143 <PatternLayout pattern="${LOG_CONSOLE_FORMAT} " />
144144 </Console>
145+ <Queue name="TerminalConsole">
146+ <PatternLayout pattern="${LOG_TERMINAL_FORMAT} " />
147+ </Queue>
145148 <RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="${ROLLING_LOG_FILE_PATTERN} ">
146149 <PatternLayout pattern="${LOG_FILE_FORMAT} " />
147150 <Policies>
You can’t perform that action at this time.
0 commit comments