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

com.bitpay.sdk.logger.LoggerProvider Maven / Gradle / Ivy

Go to download

Full implementation of the BitPay Payment Gateway. This library implements BitPay's Cryptographically Secure RESTful API.

The newest version!
/*
 * Copyright (c) 2019 BitPay.
 * All rights reserved.
 */

package com.bitpay.sdk.logger;

import java.util.Objects;

public class LoggerProvider {

    private static BitPayLogger logger = null;

    private LoggerProvider() {
    }

    public static BitPayLogger getLogger() {
        if (Objects.isNull(logger)) {
            logger = new EmptyLogger();
        }

        return logger;
    }

    /**
     * Set BitPayLogger.
     *
     * @param bitPayLogger BitPayLogger
     */
    public static void setLogger(BitPayLogger bitPayLogger) {
        logger = bitPayLogger;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy