Skip to content

wrap a file stream as a extremely high performance log stream.

License

Notifications You must be signed in to change notification settings

fibjs-modules/logstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@fibjs/logstream

NPM version build status appveyor build status Test coverage David deps Known Vulnerabilities npm download

wrap a file stream as a extremely high performance log stream.

Install

$ npm i @fibjs/logstream --save

Usage

const fs = require('fs');
const LogStream = require('@fibjs/logstream');

const fd = fs.open('path to log file', 'w');
const bf = new LogStream(fd);
bf.writeText('some log');
bf.writeLine('new line log');
bf.end();// close the log stream.

Questions & Suggestions

Please open an issue here.

License

MIT