mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
13 lines
352 B
JavaScript
13 lines
352 B
JavaScript
'use strict';
|
|
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const fileLog = function (...args) {
|
|
// TODO BRN: This does not guarantee order, is not multi process safe,
|
|
// TODO BRN: and is not guaranteed to complete before exit.
|
|
fs.appendFileSync(path.join(process.cwd(), 'sls.log'), `${args.join()}\n`);
|
|
};
|
|
|
|
module.exports = fileLog;
|