log4j2-console.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <!-- Use this file for logging exlusively to the console, useful for
  17. some development tasks. Should not be used for production -->
  18. <Configuration>
  19. <Appenders>
  20. <Console name="STDERR" target="SYSTEM_ERR">
  21. <PatternLayout>
  22. <Pattern>
  23. %-5p - %d{yyyy-MM-dd HH:mm:ss.SSS}; %c; %m%n
  24. </Pattern>
  25. </PatternLayout>
  26. </Console>
  27. </Appenders>
  28. <Loggers>
  29. <Logger name="org.apache.zookeeper" level="WARN"/>
  30. <Logger name="org.apache.hadoop" level="WARN"/>
  31. <Root level="INFO">
  32. <AppenderRef ref="STDERR"/>
  33. </Root>
  34. </Loggers>
  35. </Configuration>