beeline-log4j2.properties 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. status = INFO
  17. name = BeelineLog4j2
  18. packages = org.apache.hadoop.hive.ql.log
  19. # list of properties
  20. property.hive.log.level = WARN
  21. property.hive.root.logger = console
  22. # list of all appenders
  23. appenders = console
  24. # console appender
  25. appender.console.type = Console
  26. appender.console.name = console
  27. appender.console.target = SYSTEM_ERR
  28. appender.console.layout.type = PatternLayout
  29. appender.console.layout.pattern = %d{yy/MM/dd HH:mm:ss} [%t]: %p %c{2}: %m%n
  30. # list of all loggers
  31. loggers = HiveConnection
  32. # HiveConnection logs useful info for dynamic service discovery
  33. logger.HiveConnection.name = org.apache.hive.jdbc.HiveConnection
  34. logger.HiveConnection.level = INFO
  35. # root logger
  36. rootLogger.level = ${sys:hive.log.level}
  37. rootLogger.appenderRefs = root
  38. rootLogger.appenderRef.root.ref = ${sys:hive.root.logger}