All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.identity.implementation.IdentityLogOptionsImpl Maven / Gradle / Ivy

The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.identity.implementation;

import com.azure.core.util.logging.LogLevel;

public class IdentityLogOptionsImpl {
    private LogLevel runtimeExceptionLogLevel;
    private boolean allowAccountIdentifierLogs;

    public IdentityLogOptionsImpl() {
        this(false);
    }

    public IdentityLogOptionsImpl(boolean isUnderCredentialChainScope) {
        runtimeExceptionLogLevel = isUnderCredentialChainScope ? LogLevel.VERBOSE : LogLevel.ERROR;
    }

    public LogLevel getRuntimeExceptionLogLevel() {
        return runtimeExceptionLogLevel;
    }

    public IdentityLogOptionsImpl setLoggingAccountIdentifiersAllowed(boolean allowAccountIdentifierLogs) {
        this.allowAccountIdentifierLogs = allowAccountIdentifierLogs;
        return this;
    }

    public boolean isLoggingAccountIdentifiersAllowed() {
        return this.allowAccountIdentifierLogs;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy