From ffff60772c608d774d9486d18474b47016eed9cd Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 8 Jun 2020 20:45:02 +0000 Subject: [PATCH] fix(core): update --- package.json | 2 +- readme.md | 1 - test/test.ts | 4 ++-- ts/smartlog.classes.loggroup.ts | 11 +++++++---- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index ccebe5c..67ef632 100644 --- a/package.json +++ b/package.json @@ -46,4 +46,4 @@ "npmextra.json", "readme.md" ] -} +} \ No newline at end of file diff --git a/readme.md b/readme.md index aed60a8..15fc73d 100644 --- a/readme.md +++ b/readme.md @@ -76,7 +76,6 @@ The following destinations are available: // TBD ``` - ## Contribution We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :) diff --git a/test/test.ts b/test/test.ts index 7baa164..14b1b37 100644 --- a/test/test.ts +++ b/test/test.ts @@ -7,7 +7,7 @@ let testSmartLog: smartlog.Smartlog; tap.test('should produce a valid ConsoleLog instance', async () => { testConsoleLog = new smartlog.ConsoleLog(); testConsoleLog.log('ok', 'this is ok'); -}) +}); tap.test('should produce instance of Smartlog', async () => { testSmartLog = new smartlog.Smartlog({ @@ -38,6 +38,6 @@ tap.test('should be able to log things', async () => { tap.test('should create a log group', async () => { const logGroup = testSmartLog.createLogGroup('some cool transaction'); logGroup.log('info', 'this is logged from a log group'); -}) +}); tap.start(); diff --git a/ts/smartlog.classes.loggroup.ts b/ts/smartlog.classes.loggroup.ts index 3543b49..4862737 100644 --- a/ts/smartlog.classes.loggroup.ts +++ b/ts/smartlog.classes.loggroup.ts @@ -5,13 +5,17 @@ export class LogGroup { public smartlogRef: Smartlog; public transactionId: string; public groupId = plugins.isounique.uni(); - + constructor(smartlogInstance: Smartlog, transactionIdArg: string) { this.smartlogRef = smartlogInstance; this.transactionId = transactionIdArg; } - public log(logLevelArg: plugins.smartlogInterfaces.TLogLevel, logMessageArg: string, logDataArg?: any) { + public log( + logLevelArg: plugins.smartlogInterfaces.TLogLevel, + logMessageArg: string, + logDataArg?: any + ) { this.smartlogRef.log(logLevelArg, logMessageArg, logDataArg, { id: plugins.isounique.uni(), type: 'none', @@ -20,5 +24,4 @@ export class LogGroup { transaction: this.transactionId }); } - -} \ No newline at end of file +}