lib/long-con/index.js
function LongCon() {
  this.settings = {
    namespace: '',
    nlFirst: false,
    quiet: false,
    time: false,
    traceIndent: '    ',
    traceLanes: true
  };

  this.stackDepth = 0;
  this.firstLine = true;
}
function LongCon() {
  this.settings = {
    namespace: '',
    nlFirst: false,
    quiet: false,
    time: false,
    traceIndent: '    ',
    traceLanes: true
  };

  this.stackDepth = 0;
  this.firstLine = true;
}
function LongCon ( ) { this . settings = { namespace : '' , nlFirst : false , quiet : false , time : false , traceIndent : '    ' , traceLanes : true } ; this . stackDepth = 0 ; this . firstLine = true ; }
LongCon constructor.

Usage:

var longCon = require('long-con').create(); // new LongCon() instance

Example configuration:

loncCon
.set('namespace', 'myLib');
var log = longCon.create('[stderr]', console.error, 'red.bold');

// [stderr] myLib error message: ...
log('error message: %s', ...);

Configuration:

- `{string} [namespace='']` Prepend to each message
- `{string} [nlFirst=false]` Prepend `\n` to first log
- `{string} [quiet=false]` Drop all messages
- `{string} [time=false]` Prepend `toUTCString()`
- `{string} [traceIndent='    ']` Represent a stack level (default: 4 spaces)
- `{string} [traceLanes=true]` Prepend each traceIndent with `|`

Properties:

- `{number} [stackDepth=0]` Used to size indentation and draw trace lanes
- `{boolean} firstLine` Supports `nlFirst` config option

@see cli-color https://github.com/medikoo/cli-color
LongCon constructor .