//
//  XCGLogger+Logentries.swift
//
//  Created by Brian Batchelder on 1/7/16.
//  Copyright © 2016 Brian's Brain. All rights reserved.
//

import XCGLogger
import le

extension XCGLogger {
    
    open class XCGLogentriesLogDestination: XCGBaseLogDestination {
        open var leLog: LELog
        
        public init(leLog : LELog, owner: XCGLogger, identifier: String = "com.cerebralgardens.xcglogger.logdestination.logentries") {
            self.leLog = leLog
            super.init(owner: owner, identifier : identifier)
        }

        open override func output(_ logDetails: XCGLogDetails, text: String) {
            leLog.log(UIDevice.currentDevice().identifierForVendor!.UUIDString + ": " + text)
        }
    }
}
//
//  XCGLogger+Logentries.swift
//
//  Created by Brian Batchelder on 1/7/16.
//  Copyright © 2016 Brian's Brain. All rights reserved.
//

import XCGLogger
import le

extension XCGLogger {
    
    open class XCGLogentriesLogDestination: BaseDestination {
        open var leLog: LELog
        
        public init(leLog : LELog, owner: XCGLogger, identifier: String = "com.cerebralgardens.xcglogger.logdestination.logentries") {
            self.leLog = leLog
            super.init(owner: owner, identifier : identifier)
        }
        
        open override func output(logDetails: LogDetails, message: String) {
            let logOutput = (UIDevice.current.identifierForVendor?.uuidString)! + ": " + message
            leLog.log(logOutput as NSObject!)
        }
    }
}
Update for new versions of XCGLogger and le_ios
Update for new versions of XCGLogger and le_ios
