log4j.properties 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. log4j.rootLogger=INFO,file
  21. # Direct log messages to a log file
  22. log4j.appender.file=org.apache.log4j.RollingFileAppender
  23. log4j.appender.file.File=/var/log/ambari-server/ambari-server.log
  24. log4j.appender.file.MaxFileSize=80MB
  25. log4j.appender.file.MaxBackupIndex=60
  26. log4j.appender.file.layout=org.apache.log4j.PatternLayout
  27. log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p [%t] %c{1}:%L - %m%n
  28. # Log config changes
  29. log4j.logger.configchange=INFO,configchange
  30. log4j.additivity.configchange=false
  31. log4j.appender.configchange=org.apache.log4j.FileAppender
  32. log4j.appender.configchange.File=/var/log/ambari-server/ambari-config-changes.log
  33. log4j.appender.configchange.layout=org.apache.log4j.PatternLayout
  34. log4j.appender.configchange.layout.ConversionPattern=%d{ISO8601} %5p - %m%n