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 levelnumber 4 Log Level
tagstring "ALERT" Tag to print
colorstring ansiColor.yellow Print color at this log level
-
static critical :debugPrintOptions
-
Print function options : critical
Properties:
Name Type Default Description levelnumber 5 Log Level
tagstring "CRITICAL" Tag to print
colorstring 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 levelnumber 5 Log Level
tagstring "ERROR" Tag to print
colorstring 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 levelnumber 5 Log Level
tagstring "INFO" Tag to print
colorstring ansiColor.green Print color at this log level
-
static log :debugPrintOptions
-
Print function options : log
Properties:
Name Type Default Description levelnumber 6 Log Level
tagstring "LOG" Tag to print
colorstring ansiColor.green Print color at this log level
-
static memoryWatermark :memoryWatermark
-
System memory watermark options
Properties:
Name Type Default Description tagstring "WATERMARK" Tag to print
textstring "RAM Watermark" Type of monitor
colorstring ansiColor.yellow Print color in this segment
fieldsObject Available fields
Properties
Name Type Description RAMboolean Value of highest RAM ussage
Swapboolean Value of highest Swap ussage
Nodeboolean Value of highest Node.js ussage
dateTimedateTime Date & time segment options
-
static nodeMemoryMonitor :memoryMonitorOptions
-
Node memory monitor options
Properties:
Name Type Default Description tagstring "NODE" Tag to print
typestring "MONITOR" Type of monitor
colorstring ansiColor.blue Print color in this segment
fieldsObject Available fields
Properties
Name Type Default Description rssboolean true Show/hide rss
heapTotalboolean true Show/hide heapTotal
heapUsedboolean true Show/hide heapUsed
externalboolean true Show/hide external
-
static sysMemoryMonitor :memoryMonitorOptions
-
System memory monitor options
Properties:
Name Type Default Description tagstring "SYSTEM" Tag to print
typestring "MONITOR" Type of monitor
colorstring ansiColor.blue Print color in this segment
fieldsObject Available fields
Properties
Name Type Default Description MemTotalboolean true Show/hide MemTotal
MemAvailableboolean true Show/hide MemAvailable
SwapTotalboolean true Show/hide SwapTotal
SwapFreeboolean true Show/hide SwapFree
-
static warn :debugPrintOptions
-
Print function options : warn
Properties:
Name Type Default Description levelnumber 5 Log Level
tagstring "WARN" Tag to print
colorstring ansiColor.yellow Print color at this log level