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

org.cqframework.fhir.utilities.LoggerAdapter Maven / Gradle / Ivy

Go to download

The cqf-fhir library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.18.0
Show newest version
package org.cqframework.fhir.utilities;

import org.hl7.fhir.r5.context.IWorkerContext;
import org.slf4j.Logger;

public class LoggerAdapter implements IWorkerContext.ILoggingService {
    private Logger innerLogger;

    public LoggerAdapter(Logger innerLogger) {
        this.innerLogger = innerLogger;
    }

    @Override
    public void logMessage(String s) {
        innerLogger.info(s);
    }

    @Override
    public void logDebugMessage(LogCategory logCategory, String s) {
        innerLogger.debug("{}: {}", logCategory, s);
    }

    @Override
    public boolean isDebugLogging() {
        return this.innerLogger.isDebugEnabled();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy