2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.ojelectronics.internal.common;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.slf4j.LoggerFactory;
19 import com.github.signalr4j.client.LogLevel;
20 import com.github.signalr4j.client.Logger;
23 * Logs SignalR information
25 * @author Christian Kittel - Initial Contribution
28 public class SignalRLogger implements Logger {
30 private final org.slf4j.Logger logger = LoggerFactory.getLogger(SignalRLogger.class);
33 public void log(@Nullable String message, @Nullable LogLevel level) {
34 if (message == null || level == null) {
39 logger.warn("Critical SignalR Message: {}", message);
42 logger.info("SignalR information message: {}", message);
46 logger.trace("SignalR information message: {}", message);