log4j.properties 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # Licensed to the Apache Software Foundation (ASF) under one or more
  2. # contributor license agreements. See the NOTICE file distributed with
  3. # this work for additional information regarding copyright ownership.
  4. # The ASF licenses this file to You under the Apache License, Version 2.0
  5. # (the "License"); you may not use this file except in compliance with
  6. # the License. You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. # Define some default values that can be overridden by system properties
  16. hdfsproxy.root.logger=DEBUG,console
  17. hdfsproxy.log.dir=.
  18. hdfsproxy.log.file=hdfsproxy.log
  19. # Define the root logger to the system property "hdfsproxy.root.logger".
  20. log4j.rootLogger=${hdfsproxy.root.logger}
  21. # Logging Threshold
  22. log4j.threshhold=ALL
  23. #
  24. # Daily Rolling File Appender
  25. #
  26. log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender
  27. log4j.appender.DRFA.File=${hdfsproxy.log.dir}/${hdfsproxy.log.file}
  28. # Rollver at midnight
  29. log4j.appender.DRFA.DatePattern=.yyyy-MM-dd
  30. # 30-day backup
  31. #log4j.appender.DRFA.MaxBackupIndex=30
  32. log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout
  33. # Pattern format: Date LogLevel LoggerName LogMessage
  34. log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
  35. # Debugging Pattern format
  36. #log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%F:%M(%L)) - %m%n
  37. #
  38. # console
  39. # Add "console" to rootlogger above if you want to use this
  40. #
  41. log4j.appender.console=org.apache.log4j.ConsoleAppender
  42. log4j.appender.console.target=System.err
  43. log4j.appender.console.layout=org.apache.log4j.PatternLayout
  44. log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{2}: %m%n
  45. #
  46. # Rolling File Appender
  47. #
  48. #log4j.appender.RFA=org.apache.log4j.RollingFileAppender
  49. #log4j.appender.RFA.File=${hdfsproxy.log.dir}/${hdfsproxy.log.file}
  50. # Logfile size and and 30-day backups
  51. #log4j.appender.RFA.MaxFileSize=1MB
  52. #log4j.appender.RFA.MaxBackupIndex=30
  53. #log4j.appender.RFA.layout=org.apache.log4j.PatternLayout
  54. #log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} - %m%n
  55. #log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%F:%M(%L)) - %m%n
  56. # Custom Logging levels
  57. log4j.logger.org.apache.hadoop.hdfsproxy.HttpsProxy=DEBUG
  58. log4j.logger.org.apache.hadoop.hdfsproxy.ProxyFilter=DEBUG
  59. log4j.logger.org.apache.hadoop.hdfsproxy.HdfsProxy=DEBUG