How to print LDAPloginModule in log file?

I have exactly the same question with below. 

https://community.bonitasoft.com/questions-and-answers/how-can-i-print-ldaploginmodule-log

I would like to see the logging with users login status by LDAP authentication.


[LdapLoginModule] authentication succeeded
[LdapLoginModule] added...   
[LdapLoginModule] authentication-first mode
[LdapLoginModule] user provider:  

....

Inside the Tomcat command window, I am able to see the log, but, I would like to see the status in the Catalina log file.

I tried to configure the level of the log with the logging.properties, however, it seems complicated for me. 

How to configure the log file in order to see the user's login status. Any help would be appreciated. 

Thanks in advance.

 

 

Hello,

This component is not delivered by Bonita, but by Oracle. Source code is available:

http://www.javased.com/index.php?source_dir=openjdk-7%2Fcom%2Fsun%2Fsecurity%2Fauth%2Fmodule%2FLdapLoginModule.java

The source code shows the component do a System.out.println. Then the question is “how can we redirect the Tomcat output to the log file? “

According

https://serverfault.com/questions/252934/how-to-redirect-tomcat-console-log-to-files-tomcat-started-via-windows-bat

it should be possible by editing conf/logging.properties, and change the line

.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

to

.handlers = 1catalina.org.apache.juli.FileHandler