ocket8888 commented on a change in pull request #6532:
URL: https://github.com/apache/trafficcontrol/pull/6532#discussion_r814217305



##########
File path: dev/traffic_router/conf/log4j2.xml
##########
@@ -0,0 +1,34 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!--
+
+       Licensed under the Apache License, Version 2.0 (the "License");
+       you may not use this file except in compliance with the License.
+       You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+       Unless required by applicable law or agreed to in writing, software
+       distributed under the License is distributed on an "AS IS" BASIS,
+       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+       See the License for the specific language governing permissions and
+       limitations under the License.
+ -->
+<Configuration>
+       <Appenders>
+               <Console name="stdout" target="SYSTEM_OUT">
+                       <PatternLayout pattern="%-5p 
%d{yyyy-MM-dd'T'HH:mm:ss.SSS} [%t] %c - %m%n"/>
+                       <ThresholdFilter level="ALL"/>
+               </Console>
+       </Appenders>
+       <Loggers>
+               <Logger name="org.apache.traffic_control.traffic_router" 
level="INFO" additivity="false">
+                       <AppenderRef ref="stdout"/>
+               </Logger>
+               <Logger 
name="org.apache.traffic_control.traffic_router.core.access" level="INFO" 
additivity="false">
+                       <AppenderRef ref="stdout"/>
+               </Logger>
+               <Root level="ALL" additivity="false">

Review comment:
       Yeah, it's for development so I wanted it to be very verbose. Do you 
think the amount of logging is making it difficult for a developer to follow 
the logic flow? `"WARN"` isn't verbose enough IMO, but I definitely don't mind 
turning it down to `"DEBUG"`, since arguably if you really want a deep trace of 
the execution you'd just attach a debugger. Maybe `"INFO"` - I'm not sure 
precisely how different those are.




-- 
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]


Reply via email to