particle-iot/console-panel

Name: console-panel

Owner: Particle

Description: Read only log console panel package for Atom

Created: 2015-10-09 17:46:39.0

Updated: 2017-09-21 14:06:09.0

Pushed: 2018-01-03 18:21:01.0

Homepage: null

Size: 69

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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

sumedServices": {
onsole-panel": {
"versions": {
  "^1.0.0": "consumeConsolePanel"
}


main.coffee

umeConsolePanel: (@consolePanel) ->

 (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.

TODO

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.