-
Notifications
You must be signed in to change notification settings - Fork 423
Enable MSAL4J Logging
The JDBC driver uses MSAL4J for Active Directory authentications. To debug issues in MSAL4J, it is helpful to enable logging in the MSAL4J library.
MSAL4J uses the Simple Logging Facade for Java (SLF4J) for logging.SLF4J supports logging to popular frameworks, including java.util.logging (what the JDBC driver uses).
To enable MSAL4J logging to java.util.logging, you simply need to drop slf4j-jdk14-.jar in your lib folder/classpath. SLF4J logs will be directed to java.util.logging and you can configure logging.properties in your JAVA_HOME/config folder to pick them up and output them to your log location.
The MSAL4J namespace is com.microsoft.aad.msal4j. Select the level of logging level desired (eg. FINE, FINEST) and verify that you see logs from com.microsoft.aad.msal4j
Reference: MSAL4J Logging wiki