     public override init(frame: CGRect) {
         super.init(frame: frame)
         
-        self.logView.loadLogsFromDisk()
+        NSSetUncaughtExceptionHandler(exceptionHandler)
         self.logView.registerObserver()
     }
     

    
    @objc fileprivate func removeHideGesture(_ gesture: UIGestureRecognizer) {
        self.removeGestureRecognizer(gesture)
    }
    
    // return the color of Log.Level

    /// Color of error logs, default is red.
    public var errorColor: UIColor = UIColor.red
    
    /// Font of logs, default is system font of 15 pix.
    public var font: UIFont = UIFont.systemFont(ofSize: 15) {
        didSet {
            self.logView.textView.font = font
        }
    }
    
    fileprivate var shownWindow: UIWindow?
    fileprivate var showGesture: UIGestureRecognizer!
    fileprivate var hideGesture: UIGestureRecognizer!
    fileprivate var animating: Bool = false
    fileprivate var originalStatusBarStyle: UIStatusBarStyle?
    
    fileprivate lazy var logView: LogView = {
        let logView = LogView.init(frame: CGRect(x:0, y:0, width:SCREEN_WIDTH, height:SCREEN_HEIGHT))
        logView.backgroundColor = UIColor.white
        logView.textView.font = self.font
        self.addSubview(logView)
        return logView
    }()
    
    fileprivate lazy var closeButton: UIButton = {
        let closeButton = UIButton.init(type: UIButtonType.custom)
        closeButton.setTitle("×", for: UIControlState.normal)
        closeButton.titleLabel?.font = UIFont.systemFont(ofSize: 28)
