appender.RollingFile.type = RollingFile
appender.RollingFile.name = file
appender.RollingFile.fileName=C:/iiq/iiqlogs.log
appender.RollingFile.filePattern = ${LOG_DIR}/iiqlogs.%d{dd-MMM}.log.gz
appender.RollingFile.layout.type = PatternLayout
appender.RollingFile.layout.pattern = %d{ISO8601} %5p %t %c{4}:%L - %m%n
appender.RollingFile.policies.type = Policies
appender.RollingFile.policies.size.type = SizeBasedTriggeringPolicy
appender.RollingFile.policies.size.size=100MB
appender.RollingFile.strategy.type = DefaultRolloverStrategy
appender.RollingFile.strategy.max = 50
rootLogger.level=info
rootLogger.appenderRef.file.ref=file
=============================================
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE Rule PUBLIC "sailpoint.dtd" "sailpoint.dtd">
<Rule language="beanshell" name="test11">
<Description>Test Rule</Description>
<Source>
import org.apache.testinglogs.log4j.Logger;
//Logger log = Logger.getLogger("testinglogs logger111111"); throwing error
Logger logger = LogManager.getLogger("testinglogs getLogger2222222222");
logger.debug("---------------aaaaaaaa-----bbbbbbbb-----------111-------------------");
logger.info("testinglogs, logger.info");
logger.warn("testinglogs, logger.warn!");
log.debug("---------log------aaaaaaaa-----bbbbbbbb-------------2222222-----------------");
log.info(" testinglogs, log.info");
log.warn(" testinglogs, log.warn");
return "testinglogs testing";
</Source>
</Rule>
output 2023-11-23T06:32:24,104 INFO http-nio-7081-exec-1 testinglogs getLogger2222222222:-2 - testinglogs, logger.info
output 2023-11-23T06:32:24,105 WARN http-nio-7081-exec-1 testinglogs getLogger2222222222:-2 - testinglogs, logger.warn!
output 2023-11-23T06:32:24,105 WARN http-nio-7081-exec-1 sailpoint.server.InternalContext:-2 - testinglogs, log.warn