com.blockchyp.client.SystemOutPaymentLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blockchyp-java Show documentation
Show all versions of blockchyp-java Show documentation
This is the recommended means for Java developers to access the BlockChyp gateway and BlockChyp terminals.
package com.blockchyp.client;
/**
* Very minimal implementation of PaymentLogger. We recommend you provide your
* own implementation that hooks into your existing logging framework.
*
*/
public class SystemOutPaymentLogger implements PaymentLogger {
@Override
public void debug(Object message) {
System.out.println(message);
}
@Override
public void debug(Object message, Throwable t) {
System.out.println(message);
t.printStackTrace(System.out);
}
@Override
public void error(Object message) {
System.out.println(message);
}
@Override
public void error(Object message, Throwable t) {
System.out.println(message);
t.printStackTrace(System.out);
}
@Override
public void fatal(Object message) {
System.out.println(message);
}
@Override
public void fatal(Object message, Throwable t) {
System.out.println(message);
t.printStackTrace(System.out);
}
@Override
public void info(Object message) {
System.out.println(message);
}
@Override
public void info(Object message, Throwable t) {
System.out.println(message);
t.printStackTrace(System.out);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy