This package has been deprecated

Author message:

this version has been deprecated

nwconsole

1.0.0 • Public • Published

nwconsole

Redirect console.log calls to a basic log file for node webkit applications.

Motivation

'console' in nw application can easily get mixed between node & webkit environnement. In nw, nwconsole, will enforce output in a simple, unique, temporary file for both nodejs & webkit context. If used in a raw nodejs environnement, nwconsole falls back to the native 'console'.

Installation

npm install nwconsole

Dependencies

none, full code source is 10 lines, give it a look.

Usage example

console = require('nwconsole');
console.log("This behave '%d', "43", "Exactly as console should");

Readme

Keywords

Package Sidebar

Install

npm i nwconsole

Weekly Downloads

3

Version

1.0.0

License

BSD-2-Clause

Last publish

Collaborators

  • frodon