solr-log4j.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0"?>
  2. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  3. <!--
  4. /**
  5. * Licensed to the Apache Software Foundation (ASF) under one
  6. * or more contributor license agreements. See the NOTICE file
  7. * distributed with this work for additional information
  8. * regarding copyright ownership. The ASF licenses this file
  9. * to you under the Apache License, Version 2.0 (the
  10. * "License"); you may not use this file except in compliance
  11. * with the License. You may obtain a copy of the License at
  12. *
  13. * http://www.apache.org/licenses/LICENSE-2.0
  14. *
  15. * Unless required by applicable law or agreed to in writing, software
  16. * distributed under the License is distributed on an "AS IS" BASIS,
  17. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. * See the License for the specific language governing permissions and
  19. * limitations under the License.
  20. */
  21. -->
  22. <configuration supports_final="false">
  23. <property>
  24. <name>content</name>
  25. <description>Custom log4j.properties</description>
  26. <value>
  27. #
  28. #
  29. # Licensed to the Apache Software Foundation (ASF) under one
  30. # or more contributor license agreements. See the NOTICE file
  31. # distributed with this work for additional information
  32. # regarding copyright ownership. The ASF licenses this file
  33. # to you under the Apache License, Version 2.0 (the
  34. # "License"); you may not use this file except in compliance
  35. # with the License. You may obtain a copy of the License at
  36. #
  37. # http://www.apache.org/licenses/LICENSE-2.0
  38. #
  39. # Unless required by applicable law or agreed to in writing,
  40. # software distributed under the License is distributed on an
  41. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  42. # KIND, either express or implied. See the License for the
  43. # specific language governing permissions and limitations
  44. # under the License.
  45. #
  46. #
  47. #
  48. #
  49. # Solr Logging Configuration
  50. #
  51. # Logging level
  52. solr.log=${solr.log4j.dir}
  53. log4j.rootLogger=INFO, file, CONSOLE
  54. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
  55. log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
  56. log4j.appender.CONSOLE.layout.ConversionPattern=%-4r [%t] %-5p %c %x [%X{collection} %X{shard} %X{replica} %X{core}] \u2013 %m%n
  57. #- size rotation with log cleanup.
  58. log4j.appender.file=org.apache.log4j.RollingFileAppender
  59. log4j.appender.file.MaxFileSize=4MB
  60. log4j.appender.file.MaxBackupIndex=9
  61. #- File to log to and log format
  62. log4j.appender.file.File=${solr.log}/solr.log
  63. log4j.appender.file.layout=org.apache.log4j.PatternLayout
  64. log4j.appender.file.layout.ConversionPattern=%-5p - %d{yyyy-MM-dd HH:mm:ss.SSS}; [%X{collection} %X{shard} %X{replica} %X{core}] %C; %m\n
  65. log4j.logger.org.apache.zookeeper=WARN
  66. log4j.logger.org.apache.hadoop=WARN
  67. # set to INFO to enable infostream log messages
  68. log4j.logger.org.apache.solr.update.LoggingInfoStream=OFF
  69. </value>
  70. </property>
  71. </configuration>