Problem
In the Authentication via Active Directory and LDAP, there are several messages logged within the application log file. Depending on the amount of users, a lot of information is going into logs/conductor.log.
Learn
To separate LDAP entries from the application log file by default, edit the file conf/log4j-production.properties and add the following configuration block.
#file appender for ldap authentication logger
log4j.category.datameer.dap.plugin.ldap.authentication=TRACE, ldap
log4j.category.org.springframework.ldap.core=TRACE, ldap
log4j.additivity.datameer.dap.plugin.ldap.authentication=false
log4j.additivity.org.springframework.ldap.core=false
log4j.appender.ldap=org.apache.log4j.RollingFileAppender
log4j.appender.ldap.layout=datameer.dap.conductor.util.logging.CustomLog4jPatternLayout
log4j.appender.ldap.layout.ConversionPattern=[%u] %5p [%c] [%d{yyyy-MM-dd HH:mm:ss}] (%F:%L) - %m%n
log4j.appender.ldap.File=logs/ldap.log
log4j.appender.ldap.MaxFileSize=10MB
log4j.appender.ldap.MaxBackupIndex=10
log4j.appender.ldap.threshold=TRACE
It is then necessary to stop and start the Datameer service to make the change active.
Comments
0 comments
Please sign in to leave a comment.