logback.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!--
  2. ~ Licensed to the Apache Software Foundation (ASF) under one
  3. ~ or more contributor license agreements. See the NOTICE file
  4. ~ distributed with this work for additional information
  5. ~ regarding copyright ownership. The ASF licenses this file
  6. ~ to you under the Apache License, Version 2.0 (the
  7. ~ "License"); you may not use this file except in compliance
  8. ~ with the License. You may obtain a copy of the License at
  9. ~
  10. ~ http://www.apache.org/licenses/LICENSE-2.0
  11. ~
  12. ~ Unless required by applicable law or agreed to in writing, software
  13. ~ distributed under the License is distributed on an "AS IS" BASIS,
  14. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. ~ See the License for the specific language governing permissions and
  16. ~ limitations under the License.
  17. -->
  18. <configuration>
  19. <appender name="file" class="ch.qos.logback.core.FileAppender">
  20. <file>${log.file}</file>
  21. <append>false</append>
  22. <encoder>
  23. <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{60} %X{sourceThread} - %msg%n</pattern>
  24. </encoder>
  25. </appender>
  26. <!-- This affects logging for both user code and Flink -->
  27. <root level="INFO">
  28. <appender-ref ref="file"/>
  29. </root>
  30. <!-- Uncomment this if you want to only change Flink's logging -->
  31. <!--<logger name="org.apache.flink" level="INFO">-->
  32. <!--<appender-ref ref="file"/>-->
  33. <!--</logger>-->
  34. <!-- The following lines keep the log level of common libraries/connectors on
  35. log level INFO. The root logger does not override this. You have to manually
  36. change the log levels here. -->
  37. <logger name="akka" level="INFO">
  38. <appender-ref ref="file"/>
  39. </logger>
  40. <logger name="org.apache.kafka" level="INFO">
  41. <appender-ref ref="file"/>
  42. </logger>
  43. <logger name="org.apache.hadoop" level="INFO">
  44. <appender-ref ref="file"/>
  45. </logger>
  46. <logger name="org.apache.zookeeper" level="INFO">
  47. <appender-ref ref="file"/>
  48. </logger>
  49. <!-- Suppress the irrelevant (wrong) warnings from the Netty channel handler -->
  50. <logger name="org.jboss.netty.channel.DefaultChannelPipeline" level="ERROR">
  51. <appender-ref ref="file"/>
  52. </logger>
  53. </configuration>