llap-cli-log4j2.properties 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 = WARN
  17. name = LlapCliLog4j2
  18. packages = org.apache.hadoop.hive.ql.log
  19. # list of properties
  20. property.hive.log.level = INFO
  21. property.hive.root.logger = console
  22. property.hive.log.dir = ${sys:java.io.tmpdir}/${sys:user.name}
  23. property.hive.log.file = llap-cli.log
  24. # list of all appenders
  25. appenders = console, DRFA
  26. # console appender
  27. appender.console.type = Console
  28. appender.console.name = console
  29. appender.console.target = SYSTEM_ERR
  30. appender.console.layout.type = PatternLayout
  31. appender.console.layout.pattern = %p %c{2}: %m%n
  32. # daily rolling file appender
  33. appender.DRFA.type = RollingRandomAccessFile
  34. appender.DRFA.name = DRFA
  35. appender.DRFA.fileName = ${sys:hive.log.dir}/${sys:hive.log.file}
  36. # Use %pid in the filePattern to append <process-id>@<host-name> to the filename if you want separate log files for different CLI session
  37. appender.DRFA.filePattern = ${sys:hive.log.dir}/${sys:hive.log.file}.%d{yyyy-MM-dd}
  38. appender.DRFA.layout.type = PatternLayout
  39. appender.DRFA.layout.pattern = %d{ISO8601} %5p [%t] %c{2}: %m%n
  40. appender.DRFA.policies.type = Policies
  41. appender.DRFA.policies.time.type = TimeBasedTriggeringPolicy
  42. appender.DRFA.policies.time.interval = 1
  43. appender.DRFA.policies.time.modulate = true
  44. appender.DRFA.strategy.type = DefaultRolloverStrategy
  45. appender.DRFA.strategy.max = 30
  46. # list of all loggers
  47. loggers = ZooKeeper, DataNucleus, Datastore, JPOX, HadoopConf
  48. logger.ZooKeeper.name = org.apache.zookeeper
  49. logger.ZooKeeper.level = WARN
  50. logger.DataNucleus.name = DataNucleus
  51. logger.DataNucleus.level = ERROR
  52. logger.Datastore.name = Datastore
  53. logger.Datastore.level = ERROR
  54. logger.JPOX.name = JPOX
  55. logger.JPOX.level = ERROR
  56. logger.HadoopConf.name = org.apache.hadoop.conf.Configuration
  57. logger.HadoopConf.level = ERROR
  58. # root logger
  59. rootLogger.level = ${sys:hive.log.level}
  60. rootLogger.appenderRefs = root, DRFA
  61. rootLogger.appenderRef.root.ref = ${sys:hive.root.logger}
  62. rootLogger.appenderRef.DRFA.ref = DRFA