@fibjs/logstream

1.0.2 • Public • Published

@fibjs/logstream

NPM version 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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @fibjs/logstream

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • ngot
  • ngot-fibjs