log4j.properties 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # Copyright 2011 The Apache Software Foundation
  2. #
  3. # Licensed to the Apache Software Foundation (ASF) under one
  4. # or more contributor license agreements. See the NOTICE file
  5. # distributed with this work for additional information
  6. # regarding copyright ownership. The ASF licenses this file
  7. # to you under the Apache License, Version 2.0 (the
  8. # "License"); you may not use this file except in compliance
  9. # with the License. You may obtain a copy of the License at
  10. #
  11. # http://www.apache.org/licenses/LICENSE-2.0
  12. #
  13. # Unless required by applicable law or agreed to in writing, software
  14. # distributed under the License is distributed on an "AS IS" BASIS,
  15. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. # See the License for the specific language governing permissions and
  17. # limitations under the License.
  18. # Define some default values that can be overridden by system properties
  19. # Root logger option
  20. ambari.root.dir=/
  21. ambari.log.dir=${ambari.root.dir}/var/log/ambari-server
  22. ambari.log.file=ambari-server.log
  23. ambari.config-changes.file=ambari-config-changes.log
  24. ambari.alerts.file=ambari-alerts.log
  25. ambari.eclipselink.file=ambari-eclipselink.log
  26. ambari.dbcheck.file=ambari-server-check-database.log
  27. log4j.rootLogger=INFO,file
  28. # Direct log messages to a log file
  29. log4j.appender.file=org.apache.log4j.RollingFileAppender
  30. log4j.appender.file.File=${ambari.log.dir}/${ambari.log.file}
  31. log4j.appender.file.MaxFileSize=80MB
  32. log4j.appender.file.MaxBackupIndex=60
  33. log4j.appender.file.layout=org.apache.log4j.PatternLayout
  34. log4j.appender.file.layout.ConversionPattern=%d{DATE} %5p [%t] %c{1}:%L - %m%n
  35. # Log config changes
  36. log4j.logger.configchange=INFO,configchange
  37. log4j.additivity.configchange=false
  38. log4j.appender.configchange=org.apache.log4j.FileAppender
  39. log4j.appender.configchange.File=${ambari.log.dir}/${ambari.config-changes.file}
  40. log4j.appender.configchange.layout=org.apache.log4j.PatternLayout
  41. log4j.appender.configchange.layout.ConversionPattern=%d{ISO8601} %5p - %m%n
  42. # Log alert state changes
  43. log4j.logger.alerts=INFO,alerts
  44. log4j.additivity.alerts=false
  45. log4j.appender.alerts=org.apache.log4j.FileAppender
  46. log4j.appender.alerts.File=${ambari.log.dir}/${ambari.alerts.file}
  47. log4j.appender.alerts.layout=org.apache.log4j.PatternLayout
  48. log4j.appender.alerts.layout.ConversionPattern=%d{ISO8601} %m%n
  49. # Log database check process
  50. log4j.logger.org.apache.ambari.server.checks.CheckDatabaseHelper=INFO, dbcheck
  51. log4j.additivity.org.apache.ambari.server.checks.CheckDatabaseHelper=false
  52. log4j.appender.dbcheck=org.apache.log4j.FileAppender
  53. log4j.appender.dbcheck.File=${ambari.log.dir}/${ambari.dbcheck.file}
  54. log4j.appender.dbcheck.layout=org.apache.log4j.PatternLayout
  55. log4j.appender.dbcheck.layout.ConversionPattern=%d{ISO8601} %5p - %m%n
  56. # EclipsLink -> slf4j bridge
  57. log4j.logger.eclipselink=TRACE,eclipselink
  58. log4j.additivity.eclipselink=false
  59. log4j.appender.eclipselink=org.apache.log4j.RollingFileAppender
  60. log4j.appender.eclipselink.File=${ambari.log.dir}/${ambari.eclipselink.file}
  61. log4j.appender.eclipselink.MaxFileSize=50MB
  62. log4j.appender.eclipselink.MaxBackupIndex=10
  63. log4j.appender.eclipselink.layout=org.apache.log4j.PatternLayout
  64. log4j.appender.eclipselink.layout.ConversionPattern=%m%n
  65. log4j.logger.org.apache.hadoop.yarn.client=WARN
  66. log4j.logger.org.apache.slider.common.tools.SliderUtils=WARN
  67. log4j.logger.org.apache.ambari.server.security.authorization=WARN
  68. log4j.logger.org.apache.ambari.server.security.authorization.AuthorizationHelper=INFO
  69. log4j.logger.org.apache.ambari.server.security.authorization.AmbariLdapBindAuthenticator=INFO