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

aquality.selenium.core.configurations.LoggerConfiguration Maven / Gradle / Ivy

Go to download

Library with core functions simplifying work with Selenium-controlled applications.

There is a newer version: 4.3.0
Show newest version
package aquality.selenium.core.configurations;

import aquality.selenium.core.utilities.ISettingsFile;
import com.google.inject.Inject;

public class LoggerConfiguration implements ILoggerConfiguration {

    private static final String DEFAULT_LANGUAGE = "en";
    private final ISettingsFile settingsFile;

    @Inject
    public LoggerConfiguration(ISettingsFile settingsFile){
        this.settingsFile = settingsFile;
    }

    @Override
    public String getLanguage() {
        return settingsFile.getValueOrDefault("/logger/language", DEFAULT_LANGUAGE).toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy