fix(core): update

This commit is contained in:
2020-08-02 23:47:19 +00:00
parent 7be0e70754
commit cf899609be
3 changed files with 7487 additions and 917 deletions

View File

@ -37,10 +37,7 @@ export class Smartlog implements plugins.smartlogInterfaces.ILogDestination {
public enableConsole(optionsArg?: { captureAll: boolean }) {
if (process && optionsArg && optionsArg.captureAll) {
const write = process.stdout.write;
/* import * as fs from 'fs';
const fileStream = fs.createWriteStream(plugins.path.join(paths.nogitDir, 'output.txt'), {
flags: 'a+'
}); */
process.stdout.write = (...args) => {
const logString: string = args[0];
if (!logString.startsWith('LOG') && typeof logString === 'string') {