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

com.microsoft.azure.sdk.iotcentral.device.ConsoleLogger Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
// Copyright (c) Luca Druda. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package com.microsoft.azure.sdk.iotcentral.device;

import com.microsoft.azure.sdk.iotcentral.device.enums.IOTC_LOGGING;

public class ConsoleLogger implements ILogger {

    private IOTC_LOGGING logLevel = IOTC_LOGGING.DISABLED;

    @Override
    public void Log(String message) {
        if (this.logLevel != IOTC_LOGGING.DISABLED) {
            System.out.println(message);
        }
    }

    @Override
    public void SetLevel(IOTC_LOGGING level) {
        this.logLevel = level;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy