fix(core): update
This commit is contained in:
@ -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') {
|
||||
|
Reference in New Issue
Block a user