log4j.rootLogger=warn, A

log4j.appender.A=org.apache.log4j.ConsoleAppender
log4j.appender.A.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller's file name and line number.
log4j.appender.A.layout.ConversionPattern=%5p %C (%M) - %m%n

log4j.appender.B=org.apache.log4j.ConsoleAppender
log4j.appender.B.layout=org.apache.log4j.PatternLayout
log4j.appender.B.layout.ConversionPattern=%5p %.50X{fileName} %X{methodName}:%X{lineNumber} - %m%n

log4j.logger.jruby=debug,B
log4j.additivity.jruby=false

log4j.rootLogger=warn, A

log4j.appender.A=org.apache.log4j.ConsoleAppender
log4j.appender.A.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller's file name and line number.
log4j.appender.A.layout.ConversionPattern=%5p %C (%M) - %m%n

log4j.appender.B=org.apache.log4j.ConsoleAppender
log4j.appender.B.layout=org.apache.log4j.PatternLayout
log4j.appender.B.layout.ConversionPattern=%5p %c %X{methodName}:%X{lineNumber} - %m%n

log4j.logger.jruby=debug,B
log4j.additivity.jruby=false

Use logger name instead of file in PatternLayout
Use logger name instead of file in PatternLayout
