Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
3066503a70 | |||
cf899609be |
8383
package-lock.json
generated
8383
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartlog",
|
"name": "@pushrocks/smartlog",
|
||||||
"version": "2.0.35",
|
"version": "2.0.36",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "minimalistic distributed and extensible logging tool",
|
"description": "minimalistic distributed and extensible logging tool",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@ -22,15 +22,15 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.24",
|
"@gitzone/tsbuild": "^2.1.24",
|
||||||
|
"@gitzone/tsbundle": "^1.0.72",
|
||||||
"@gitzone/tsrun": "^1.2.12",
|
"@gitzone/tsrun": "^1.2.12",
|
||||||
"@gitzone/tstest": "^1.0.33",
|
"@gitzone/tstest": "^1.0.43",
|
||||||
"@pushrocks/tapbundle": "^3.2.1",
|
"@pushrocks/tapbundle": "^3.2.9",
|
||||||
"@types/node": "^14.0.13",
|
"@types/node": "^14.0.27",
|
||||||
"tslint": "^6.1.2",
|
"tslint": "^6.1.3",
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@gitzone/tsbundle": "^1.0.69",
|
|
||||||
"@pushrocks/isounique": "^1.0.4",
|
"@pushrocks/isounique": "^1.0.4",
|
||||||
"@pushrocks/smartlog-interfaces": "^2.0.20"
|
"@pushrocks/smartlog-interfaces": "^2.0.20"
|
||||||
},
|
},
|
||||||
|
@ -37,10 +37,7 @@ export class Smartlog implements plugins.smartlogInterfaces.ILogDestination {
|
|||||||
public enableConsole(optionsArg?: { captureAll: boolean }) {
|
public enableConsole(optionsArg?: { captureAll: boolean }) {
|
||||||
if (process && optionsArg && optionsArg.captureAll) {
|
if (process && optionsArg && optionsArg.captureAll) {
|
||||||
const write = process.stdout.write;
|
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) => {
|
process.stdout.write = (...args) => {
|
||||||
const logString: string = args[0];
|
const logString: string = args[0];
|
||||||
if (!logString.startsWith('LOG') && typeof logString === 'string') {
|
if (!logString.startsWith('LOG') && typeof logString === 'string') {
|
||||||
|
Reference in New Issue
Block a user