OHDSI Home | Forums | Wiki | Github

How to enable WebAPI logging in Linux

(Ambuj) #1


I am in a situation where I need to look at the WebAPI access logs to check the issues while doing Active Directory login.
This link https://github.com/OHDSI/WebAPI/wiki/WebAPI-Installation-Guide shows the option to add it for Windows and not for Linux.

Can someone please let me know how can I enable logs for WebAPI in Apache Tomcat in Linux environment.

Thank You

(Gustavo R. P. Souza) #2

I’m using OHDSI in a Box and I look for logs in /var/lib/tomcat8/logs/catalina.out path.

WebAPI use log4j as logging library, you can find the configuration file of last release (v2.8.1) here.

The default configuration log4j is set up to console/STDOUT via appender class org.apache.log4j.ConsoleAppender.

To find more about log4j configuration file.