Hi
I have developed some selenium scripts with TestNG and i made it as a runnnable jar file, but when i am executing that its giving me the following error as

log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.FileAppend.

The below is my log4j.properties file.

# Root logger option
log4j.rootLogger=INFO, file

# Direct log messages to a log file
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=logs\\Log.txt
#log4j.appender.file.MaxFileSize=500MB
#log4j.appender.file.MaxBackupIndex=10
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

this part:

No such property [maxBackupIndex]

is a dead give away. you are trying to use a non existing property

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.