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

org.openas2.logging.ConsoleLogger Maven / Gradle / Ivy

Go to download

Open source implementation of the AS2 standard for signed encrypted and compressed document transfer

There is a newer version: 2.10.1
Show newest version
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