Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A simple log writer for node js. Rotation and compression (gzip) are supported.
JavaScript Shell
Tree: b4858247e3

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
git_hooks
lib
test
.gitignore
.npmignore
LICENSE
README.md
package.json

README.md

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.

Something went wrong with that request. Please try again.