com.microsoft.azure.sdk.iotcentral.device.ConsoleLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotc-java-device-client Show documentation
Show all versions of iotc-java-device-client Show documentation
The Azure IoTCentral Device client for Java and Android
// 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