• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

console-panel

Read only log console panel
particle-iot
29,239
9
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

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

  • Write specs
  • Add level filtering
  • Show timestamp
  • "Go to latest" button

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by