dheeraj12347 commented on code in PR #12967:
URL: https://github.com/apache/cloudstack/pull/12967#discussion_r3084510777
##########
server/conf/log4j-cloud.xml.in:
##########
@@ -62,60 +66,84 @@ under the License.
<PatternLayout pattern="%-5p [%c{1.}] (%t:%x) %m%ex%n"/>
</Syslog>
+
<!-- ============================== -->
<!-- Append messages to the console -->
<!-- ============================== -->
+
<Console name="CONSOLE" target="SYSTEM_OUT">
- <ThresholdFilter level="OFF" onMatch="ACCEPT" onMismatch="DENY"/>
- <PatternLayout pattern="%-5p [%c{1.}] (%t:%x) %m%ex%n"/>
+ <ThresholdFilter level="ERROR" onMatch="DENY" onMismatch="ACCEPT"/>
+ <PatternLayout pattern="%d{DEFAULT} %-5p [%c{1.}] (%t:%x) %m%ex%n"/>
+ </Console>
+
+ <Console name="CONSOLE_ERR" target="SYSTEM_ERR">
+ <ThresholdFilter level="ERROR" onMatch="ACCEPT" onMismatch="DENY"/>
+ <PatternLayout pattern="%d{DEFAULT} %-5p [%c{1.}] (%t:%x) %m%ex%n"/>
Review Comment:
I’ve now updated usage/conf/log4j-cloud_usage.xml.in to add a CONSOLE_ERR
appender targeting SYSTEM_ERR with a timestamped pattern, so usage.err will
also get timestamps in line with issue #12887.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]