com.bitpay.sdk.logger.LoggerProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bitpay_sdk Show documentation
Show all versions of bitpay_sdk Show documentation
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;
}
}