Skip to content

Commit 1665750

Browse files
committed
✨ tweak: improve the logging elements
1 parent 9a097ae commit 1665750

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"type-check": "tsc --noEmit"
3333
},
3434
"dependencies": {
35-
"@wgtechlabs/log-engine": "1.3.0",
35+
"@wgtechlabs/log-engine": "2.2.0",
3636
"dotenv": "^16.4.0",
3737
"express": "^4.21.0",
3838
"express-validator": "^7.2.0",

src/app.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,22 @@ import 'dotenv/config';
44
import { config } from './config/env';
55

66
import express, { Request, Response } from 'express';
7-
import { LogEngine } from '@wgtechlabs/log-engine';
7+
import { LogEngine, LogMode } from '@wgtechlabs/log-engine';
88
import { WebhookController } from './controllers/webhookController';
99
import { verifySignature } from './middleware/auth';
1010
import { validateEvent } from './middleware/validation';
1111
import { WebhookRequest } from './types';
1212
import { RedisService } from './services/redisService';
1313

14+
// Configure LogEngine to use only local time (no ISO timestamp)
15+
LogEngine.configure({
16+
mode: LogMode.DEBUG,
17+
format: {
18+
includeIsoTimestamp: false,
19+
includeLocalTime: true
20+
}
21+
});
22+
1423
const app = express();
1524
const port = config.port;
1625

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,10 @@
423423
"@types/node" "*"
424424
"@types/send" "*"
425425

426-
"@wgtechlabs/log-engine@1.3.0":
427-
version "1.3.0"
428-
resolved "https://registry.yarnpkg.com/@wgtechlabs/log-engine/-/log-engine-1.3.0.tgz#36de3fa0f30ef5febcc4ed70ed3d1a4494804efa"
429-
integrity sha512-pg4LZzN7xgEzqJbU31/xWCcY/sXOWMd7xo642kvtsLC6OMvgW899Q5AX+yYLsMoN06B4960/MAUdUGksl9ZGzA==
426+
"@wgtechlabs/log-engine@2.2.0":
427+
version "2.2.0"
428+
resolved "https://registry.yarnpkg.com/@wgtechlabs/log-engine/-/log-engine-2.2.0.tgz#1d731d42ba6cb9792137d0e77b26e8b9c2f06c62"
429+
integrity sha512-TIvzfDPiWUWW7EX+kZ3q7id12inpe6t9n/OIX9ewIHaBeA7q8YY631f2RjHdkB33Wew9A0H1HGzTx98nKan+MQ==
430430

431431
abbrev@^3.0.0, abbrev@^3.0.1:
432432
version "3.0.1"

0 commit comments

Comments
 (0)