Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Node.js module for logging to a popcorn backend
JavaScript Shell
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
README.md
compile_proto.sh
package.json
popcorn.proto

README.md

nodecorn

Node.js module for logging to a popcorn backend.

General Usage

var nodecorn = require("nodecorn");
nodecorn.cornHost = "1.2.3.4";
nodecorn.cornPort = 12345;
nodecorn.cornDefaultNode = "server01";
nodecorn.cornDefaultNodeRole = "the entire internet";
nodecorn.cornDefaultNodeVersion = "1.0.0";
nodecorn.cornPrintToConsole = true;

nodecorn.cornLogTiny("This will log this message using all default values.");

nodecorn.cornLog(nodecorn.CORN_EMERGENCY, "Or you can easily override the default severity.");

nodecorn.cornLogFull = function(node, role, version, severity, message, module, funcname, line);

Severity Constants

CORN_EMERGENCY
CORN_ALERT
CORN_CRITICAL
CORN_ERROR
CORN_WARNING
CORN_NOTICE
CORN_INFO
CORN_DEBUG
Something went wrong with that request. Please try again.