Get support for soyuka/relieve-logger
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
soyuka/relieve-logger
relieve-logger
Install
npm install relieve-logger --save
Usage
To use with relieve
var Logger = require('relieve-logger')
var CallableTask = require('relieve/tasks/CallableTask')
var logger = new Logger(`out.log`, `err.log`)
var t = new CallableTask('test.js', {
interfaces: [logger]
})
API
/**
* @param {string} out - the out file path or a writable stream
* @param {string} err - the out file path or a writable stream
* @param {Object} options
* options.delay - the delay you want to rotate for example `1d`, `1h`(moment format http://momentjs.com/docs/#/manipulating/add/)
* options.size - the max size in bytes before rotation
* Default has no rotation
*/
new Logger(out, err, options)
Licence
MIT
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2