Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clinicjs/node-trace-log-join
Easily combine multiple node_trace files into a single one
https://github.com/clinicjs/node-trace-log-join
Last synced: 2 months ago
JSON representation
Easily combine multiple node_trace files into a single one
- Host: GitHub
- URL: https://github.com/clinicjs/node-trace-log-join
- Owner: clinicjs
- License: mit
- Created: 2018-05-21T13:06:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-11-12T13:08:41.000Z (about 3 years ago)
- Last Synced: 2024-04-14T08:00:04.443Z (9 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 4
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-trace-log-join
Easily combine multiple node_trace files into a single one
```
npm install @clinic/node-trace-log-join
```[![Build Status](https://travis-ci.org/mafintosh/node-trace-log-join.svg?branch=master)](https://travis-ci.org/mafintosh/node-trace-log-join)
## Usage
``` js
var join = require('@clinic/node-trace-log-join')join('node_trace.*.log', 'combined.log', function (err) {
if (err) throw err
console.log('All node_trace.*.log files have been combined into combined.log')
})
```## API
#### `join(files, output, [callback])`
Combines all trace files into the output file and calls the callback.
All files are combined in a streaming fashion so the memory footprint is pretty small.Alternatively you can pass a file pattern instead of the the files array.
After the files are combined, the input files are unlinked as well.
## License
MIT