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

org.yamcs.LogCrashHandler Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
package org.yamcs;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/** 
 * default crash handler that just print a message in the log
 * @author nm
 *
 */
public class LogCrashHandler implements CrashHandler {
    static Logger log = LoggerFactory.getLogger(CrashHandler.class);
    @Override
    public void handleCrash(String type, String msg) {
        log.error("type: {}, msg: {}", type, msg);
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy