yarnservice-log4j.properties 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. #
  17. # This is the log4j configuration for Slider Application Master
  18. # Log rotation based on size (256MB) with a max of 20 backup files
  19. log4j.rootLogger=INFO, amlog
  20. log4j.threshhold=ALL
  21. log4j.appender.amlog=org.apache.log4j.RollingFileAppender
  22. log4j.appender.amlog.layout=org.apache.log4j.PatternLayout
  23. log4j.appender.amlog.File=${LOG_DIR}/serviceam.log
  24. log4j.appender.amlog.MaxFileSize=256MB
  25. log4j.appender.amlog.MaxBackupIndex=20
  26. # log layout skips stack-trace creation operations by avoiding line numbers and method
  27. log4j.appender.amlog.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c{2} - %m%n
  28. # debug edition is much more expensive
  29. #log4j.appender.amlog.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c{2} (%F:%M(%L)) - %m%n
  30. # configure stderr
  31. # set the conversion pattern of stderr
  32. # Print the date in ISO 8601 format
  33. log4j.appender.stderr=org.apache.log4j.ConsoleAppender
  34. log4j.appender.stderr.Target=System.err
  35. log4j.appender.stderr.layout=org.apache.log4j.PatternLayout
  36. log4j.appender.stderr.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c{2} - %m%n
  37. log4j.appender.subprocess=org.apache.log4j.ConsoleAppender
  38. log4j.appender.subprocess.layout=org.apache.log4j.PatternLayout
  39. log4j.appender.subprocess.layout.ConversionPattern=[%c{1}]: %m%n
  40. # for debugging yarn-service framework
  41. #log4j.logger.org.apache.hadoop.yarn.service=DEBUG
  42. # uncomment for YARN operations
  43. #log4j.logger.org.apache.hadoop.yarn.client=DEBUG
  44. # uncomment this to debug security problems
  45. #log4j.logger.org.apache.hadoop.security=DEBUG
  46. #crank back on some noise
  47. log4j.logger.org.apache.hadoop.util.NativeCodeLoader=ERROR
  48. log4j.logger.org.apache.hadoop.hdfs=WARN
  49. log4j.logger.org.apache.zookeeper=WARN
  50. log4j.logger.org.apache.curator.framework.state=ERROR
  51. log4j.logger.org.apache.curator.framework.imps=WARN