 
 }
 
+// MARK: Private
 private extension LogController {
 
     func resetContentsOfLog() {

import Foundation
import XCGLogger

final class LogController: NSObject {

    fileprivate var appName: String!
    fileprivate var loggingQueue: DispatchQueue!
    fileprivate var logFileURL: URL?
    fileprivate let xcgLogger = XCGLogger(identifier: XCGLogger.Constants.fileDestinationIdentifier, includeDefaultDestinations: true)

    init(forAppNamed appName: String, logLevel: XCGLogger.Level) {
        super.init()
        self.appName = appName
        self.loggingQueue = DispatchQueue(label: "com.tworingsoft.\(appName).logger-queue")

                        showLineNumbers: false,
                        showDate: true,
                        writeToFile: logFileURL,
                        fileLevel: logLevel.xcgLogLevel()
        )
    }

