 
     @isInitialized = true
 
+  toggleLogs: ->
+    if @logsPanel.isVisible()
+      @logsPanel.hide()
+    else
+      @logsPanel.show()
+
   addNotificationView: (notification) ->
     return unless notification?
     @initializeIfNotInitialized()

            dismissable: true
          atom.notifications.addFatalError("Uncaught #{error.stack.split('\n')[0]}", options)

  deactivate: ->
    @subscriptions.dispose()
    @notificationsElement?.remove()

fs = require 'fs-plus'
StackTraceParser = null
NotificationElement = require './notification-element'
LogsPanelView = require './logs-panel-view'

Notifications =
  isInitialized: false
