log4j-server.properties 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. # for production, you should probably set pattern to %c instead of %l.
  17. # (%l is slower.)
  18. # output messages into a rolling log file as well as stdout
  19. log4j.rootLogger=INFO,stdout,R
  20. # stdout
  21. log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  22. log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  23. log4j.appender.stdout.layout.ConversionPattern=%5p %d{HH:mm:ss,SSS} %m%n
  24. # rolling log file
  25. log4j.appender.R=org.apache.log4j.RollingFileAppender
  26. log4j.appender.R.maxFileSize=20MB
  27. log4j.appender.R.maxBackupIndex=50
  28. log4j.appender.R.layout=org.apache.log4j.PatternLayout
  29. log4j.appender.R.layout.ConversionPattern=%5p [%t] %d{ISO8601} %F (line %L) %m%n
  30. # Edit the next line to point to your logs directory
  31. log4j.appender.R.File=/ssd/log/cassandra/system.log
  32. # Application logging options
  33. #log4j.logger.org.apache.cassandra=DEBUG
  34. #log4j.logger.org.apache.cassandra.db=DEBUG
  35. #log4j.logger.org.apache.cassandra.service.StorageProxy=DEBUG
  36. # Adding this to avoid thrift logging disconnect errors.
  37. log4j.logger.org.apache.thrift.server.TNonblockingServer=ERROR