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

org.openl.info.SysPropLogger Maven / Gradle / Ivy

package org.openl.info;

import java.util.Map;

final class SysPropLogger extends OpenLLogger {
    @Override
    protected String getName() {
        return "prop";
    }

    @Override
    protected void discover() {
        log("System properties:");
        for (Map.Entry prop : System.getProperties().entrySet()) {
            var key = prop.getKey();
            if ("secret.key".equals(key)) {
                log("  {} = ********************************", key);
            } else {
                log("  {} = {}", key, prop.getValue());
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy