defaultOptions

Predefined options for pretty-debug library.
By changing this options :

  • Turn on/off debug print.
  • Turn on/off color debug print.
  • Turn on/off Automatic grabage collection.
  • User can show or hide any segment.
  • User can change the default colors of different segments.

Members

static alert :debugPrintOptions

Print function options : alert

Properties:
Name Type Default Description
level number 4

Log Level

tag string "ALERT"

Tag to print

color string ansiColor.yellow

Print color at this log level

static critical :debugPrintOptions

Print function options : critical

Properties:
Name Type Default Description
level number 5

Log Level

tag string "CRITICAL"

Tag to print

color string ansiColor.red

Print color at this log level

static dateTime :dateTime

Date & time display options

static debugLevel :number

Highest debug level to output (Default : 6)

static enable :boolean

Enable pretty-debug (Default : true)

static enableColor :boolean

Enable pretty-debug color output (Default : true)

static enableGC :boolean

Enable pretty-debug automatic grbage collection. (Default : false)( NB: If turned true --expose-gc flag is needed )

static error :debugPrintOptions

Print function options : error

Properties:
Name Type Default Description
level number 5

Log Level

tag string "ERROR"

Tag to print

color string ansiColor.red

Print color at this log level

static fileLocation :fileLocation

File location display options

static funcName :funcName

Function name display options

static info :debugPrintOptions

Print function options : info

Properties:
Name Type Default Description
level number 5

Log Level

tag string "INFO"

Tag to print

color string ansiColor.green

Print color at this log level

static log :debugPrintOptions

Print function options : log

Properties:
Name Type Default Description
level number 6

Log Level

tag string "LOG"

Tag to print

color string ansiColor.green

Print color at this log level

static memoryWatermark :memoryWatermark

System memory watermark options

Properties:
Name Type Default Description
tag string "WATERMARK"

Tag to print

text string "RAM

Watermark" Type of monitor

color string ansiColor.yellow

Print color in this segment

fields Object

Available fields

Properties
Name Type Description
RAM boolean

Value of highest RAM ussage

Swap boolean

Value of highest Swap ussage

Node boolean

Value of highest Node.js ussage

dateTime dateTime

Date & time segment options

static nodeMemoryMonitor :memoryMonitorOptions

Node memory monitor options

Properties:
Name Type Default Description
tag string "NODE"

Tag to print

type string "MONITOR"

Type of monitor

color string ansiColor.blue

Print color in this segment

fields Object

Available fields

Properties
Name Type Default Description
rss boolean true

Show/hide rss

heapTotal boolean true

Show/hide heapTotal

heapUsed boolean true

Show/hide heapUsed

external boolean true

Show/hide external

static sysMemoryMonitor :memoryMonitorOptions

System memory monitor options

Properties:
Name Type Default Description
tag string "SYSTEM"

Tag to print

type string "MONITOR"

Type of monitor

color string ansiColor.blue

Print color in this segment

fields Object

Available fields

Properties
Name Type Default Description
MemTotal boolean true

Show/hide MemTotal

MemAvailable boolean true

Show/hide MemAvailable

SwapTotal boolean true

Show/hide SwapTotal

SwapFree boolean true

Show/hide SwapFree

static warn :debugPrintOptions

Print function options : warn

Properties:
Name Type Default Description
level number 5

Log Level

tag string "WARN"

Tag to print

color string ansiColor.yellow

Print color at this log level