
org.openas2.logging.ConsoleLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openas2-server Show documentation
Show all versions of openas2-server Show documentation
Open source implementation of the AS2 standard for signed encrypted and compressed document transfer
package org.openas2.logging;
import org.openas2.message.Message;
public class ConsoleLogger extends BaseLogger {
public void doLog(Level level, String msgText, Message as2Msg) {
if (System.out != null) {
getFormatter().format(level, msgText + (as2Msg == null?"":as2Msg.getLogMsgID()), System.out);
}
}
protected String getShowDefaults() {
return VALUE_SHOW_ALL;
}
protected void doLog(Throwable t, boolean terminated) {
if (System.err != null) {
getFormatter().format(t, terminated, System.err);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy