0.0.3 • Published 10 years ago

debug.log v0.0.3

Weekly downloads
11
License
ISC
Repository
github
Last release
10 years ago

Usage

Install

npm install debug.log

Invoke

var delog = require("debug.log");

delog.log(string, [...], [level]);
delog.warn(string, [...], [level]);
delog.error(string, [...], [level]);
delog.request(string, [...], [level]);
delog.response(string, [...], [level]);
delog.process(string, [...], [level]);
delog.success(string, [...], [level]);

Type Specifier

The Type Specifier is supported in the FIRST string, which says what type the argument data should be treated as.

Format specifierDescription
%sFormats the value as a string.
%d or %iFormats the value as an integer.
%fFormats the object as a floating point value.
%oFormats the value as an expandable DOM element (as in the Elements panel).
%OFormats the value as an expandable JavaScript object.
%cApplies CSS style rules to output string specified by the second parameter.

Level

The Level the last one in the arguments, which point out indentation of the console line.