console-panel

Read only log console panel

spark

30,720

9

0.3.1

MIT

GitHub

This package provides the following services:

This package consumes the following services:

Atom Console package

This isn't a terminal. It's only a log console. Great for showing compilation output, long responses or general logs.

Screenshot

Usage

By itself, the package doesn't do anything but it provides a service other packages can consume:

package.json

"consumedServices": {
  "console-panel": {
    "versions": {
      "^1.0.0": "consumeConsolePanel"
    }
  }
}

main.coffee

consumeConsolePanel: (@consolePanel) ->

log: (message) ->
	@consolePanel.log(message)

API reference

When consuming console panel you'll get an instance of ConsoleManager which has the following methods:

toggle()

Toggles the console panel.

log(message, level='info')

Logs a message. message can be a String or a custom View that will be appended.

error(message)

Logs an error.

warn(message)

Logs a warning.

notice(message)

Logs a notice.

debug(message)

Logs an debug message.

raw(rawText, level='info', lineEnding="\n")

Logs a raw message. rawText will be split by lineEnding and each line will be added separately as level.

clear()

Clears the whole console.

stickBottom()

Stick to the bottom of the console panel (default).

stickTop()

Stick to the top of the console panel.

TODO