Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (29 sloc) 637 Bytes

node-log-to-file

A simple and fast log writer. Rotation is supported.

Installation with npm > TODO

Installing npm (node package manager: http://npmjs.org/)

curl http://npmjs.org/install.sh || sh  

Installing log-to-file

[sudo] npm install [-g] log-to-file

Usage

Basic

logToFile = require('log-to-file'),
log = logToFile.create({
        directory: __dirname/log,
        fileName: 'log.txt'
});
log.write('hello world');

Examples

Exports

Known issues

Test

Just run test/run_test.js

License

node-log-to-file is licensed under the MIT license.

Jump to Line
Something went wrong with that request. Please try again.