log4j.properties 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.log.dir=/var/log/ambari-server
  21. ambari.log.file=ambari-server.log
  22. ambari.config-changes.file=ambari-config-changes.log
  23. ambari.alerts.file=ambari-alerts.log
  24. ambari.eclipselink.file=ambari-eclipselink.log
  25. ambari.dbcheck.file=ambari-server-check-database.log
  26. log4j.rootLogger=INFO,file
  27. # Direct log messages to a log file
  28. log4j.appender.file=org.apache.log4j.RollingFileAppender
  29. log4j.appender.file.File=${ambari.log.dir}/${ambari.log.file}
  30. log4j.appender.file.MaxFileSize=80MB
  31. log4j.appender.file.MaxBackupIndex=60
  32. log4j.appender.file.layout=org.apache.log4j.PatternLayout
  33. log4j.appender.file.layout.ConversionPattern=%d{DATE} %5p [%t] %c{1}:%L - %m%n
  34. # Log config changes
  35. log4j.logger.configchange=INFO,configchange
  36. log4j.additivity.configchange=false
  37. log4j.appender.configchange=org.apache.log4j.FileAppender
  38. log4j.appender.configchange.File=${ambari.log.dir}/${ambari.config-changes.file}
  39. log4j.appender.configchange.layout=org.apache.log4j.PatternLayout
  40. log4j.appender.configchange.layout.ConversionPattern=%d{ISO8601} %5p - %m%n
  41. # Log alert state changes
  42. log4j.logger.alerts=INFO,alerts
  43. log4j.additivity.alerts=false
  44. log4j.appender.alerts=org.apache.log4j.FileAppender
  45. log4j.appender.alerts.File=${ambari.log.dir}/${ambari.alerts.file}
  46. log4j.appender.alerts.layout=org.apache.log4j.PatternLayout
  47. log4j.appender.alerts.layout.ConversionPattern=%d{ISO8601} %m%n
  48. # Log database check process
  49. log4j.logger.org.apache.ambari.server.checks.CheckDatabaseHelper=INFO, dbcheck
  50. log4j.additivity.org.apache.ambari.server.checks.CheckDatabaseHelper=false
  51. log4j.appender.dbcheck=org.apache.log4j.FileAppender
  52. log4j.appender.dbcheck.File=${ambari.log.dir}/${ambari.dbcheck.file}
  53. log4j.appender.dbcheck.layout=org.apache.log4j.PatternLayout
  54. log4j.appender.dbcheck.layout.ConversionPattern=%d{ISO8601} %m%n
  55. # EclipsLink -> slf4j bridge
  56. log4j.logger.eclipselink=TRACE,eclipselink
  57. log4j.additivity.eclipselink=false
  58. log4j.appender.eclipselink=org.apache.log4j.RollingFileAppender
  59. log4j.appender.eclipselink.File=${ambari.log.dir}/${ambari.eclipselink.file}
  60. log4j.appender.eclipselink.MaxFileSize=50MB
  61. log4j.appender.eclipselink.MaxBackupIndex=10
  62. log4j.appender.eclipselink.layout=org.apache.log4j.PatternLayout
  63. log4j.appender.eclipselink.layout.ConversionPattern=%m%n
  64. log4j.logger.org.apache.hadoop.yarn.client=WARN
  65. log4j.logger.org.apache.slider.common.tools.SliderUtils=WARN
  66. log4j.logger.org.apache.ambari.server.security.authorization=WARN