     }
 
     fileprivate static func log(with logLevel: LogLevel, message: @autoclosure () -> String) {
-        if currentLogLevel >= logLevel {
+        if currentLogLevel <= logLevel {
             print(tag(with: logLevel), message())
         }
     }

import Foundation
import CoreBluetooth

public class RxBluetoothKitLog {

    fileprivate static var currentLogLevel: LogLevel = .none

    public enum LogLevel: Int {
        case none = 0
        case verbose = 1
        case debug = 2
        case info = 3
        case warning = 4
        case error = 5
    }

    public static func setLogLevel(_ logLevel: LogLevel) {
        currentLogLevel = logLevel
    }

    fileprivate static func tag(with logLevel: LogLevel) -> String {

extension RxBluetoothKitLog.LogLevel : Comparable {
    public static func < (lhs: RxBluetoothKitLog.LogLevel, rhs: RxBluetoothKitLog.LogLevel) -> Bool {
        return lhs.rawValue < rhs.rawValue
    }
    public static func <= (lhs: RxBluetoothKitLog.LogLevel, rhs: RxBluetoothKitLog.LogLevel) -> Bool {
        return lhs.rawValue <= rhs.rawValue
    }
    public static func > (lhs: RxBluetoothKitLog.LogLevel, rhs: RxBluetoothKitLog.LogLevel) -> Bool {
        return lhs.rawValue > rhs.rawValue
    }
    public static func >= (lhs: RxBluetoothKitLog.LogLevel, rhs: RxBluetoothKitLog.LogLevel) -> Bool {
        return lhs.rawValue >= rhs.rawValue
    }
    public static func == (lhs: RxBluetoothKitLog.LogLevel, rhs: RxBluetoothKitLog.LogLevel) -> Bool {
        return lhs.rawValue == rhs.rawValue
