 
     fileprivate static func log(with logLevel: LogLevel, message: @autoclosure () -> String) {
         if currentLogLevel <= logLevel {
-            print(tag(with: logLevel), message())
+            let string = "\(tag(with: logLevel)) \(message())"
+            subject.onNext(string)
+            print(string)
         }
     }
 

        return "[\(map { $0.logDescription }.joined(separator: ", "))]"
    }
}


import Foundation
import CoreBluetooth
import RxSwift

/**
 RxBluetoothKit specific logging class which gives access to its settings.
 */
public class RxBluetoothKitLog: ReactiveCompatible {

    fileprivate static var currentLogLevel: LogLevel = .none

    fileprivate static let subject = PublishSubject<String>()

    private init() {
    }
