Skip to content

Logging

Santiago Gonzalez edited this page May 20, 2019 · 9 revisions

MSAL4J uses the Simple Logging Facade for Java (SLF4J) as a simple facade or abstraction for various logging frameworks.

Personal Identifiable Information (PII) & Organizational Identifiable Information (OII)

By default, MSAL logging does not capture or log any PII or OII. The library allows app developers to turn this on by configuring logPii on the client application builder. By turning on PII or OII, the app takes responsibility for safely handling highly-sensitive data and complying with any regulatory requirements.

PII or OII logging disabled. Default Logger does not capture any PII or OII
    PublicClientApplication app2 = PublicClientApplication.builder(PUBLIC_CLIENT_ID)
            .authority(AUTHORITY)
            .build();
PII or OII logging enabled
    PublicClientApplication app2 = PublicClientApplication.builder(PUBLIC_CLIENT_ID)
            .authority(AUTHORITY)
            .logPii(true)
            .build();
Clone this wiki locally