Skip to content

Commit 7340657

Browse files
committed
feat(logger): add morgan and winston logger accross services
1 parent badf8d2 commit 7340657

120 files changed

Lines changed: 6754 additions & 268 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

nextjs-autospace/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/types/routes.d.ts";
3+
import "./.next/dev/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

nextjs-autospace/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
],
2121
"paths": {
2222
"@/*": ["./src/*"],
23-
"@autospace/shared": ["../../packages/shared/src"]
23+
"@autospace/shared": ["../nodejs-autospace/packages/shared"],
24+
"@autospace/shared/*": ["../nodejs-autospace/packages/shared/*"]
2425
}
2526
},
2627
"include": [
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"keep": {
3+
"days": true,
4+
"amount": 14
5+
},
6+
"auditLog": "/home/rashiee/Desktop/devxtra/car parking/autospace/nodejs-autospace/api-gateway/logs/api-gateway/.144c4b81fa317534ff19884c5598891f1dee78f9-audit.json",
7+
"files": [
8+
{
9+
"date": 1775228033949,
10+
"name": "/home/rashiee/Desktop/devxtra/car parking/autospace/nodejs-autospace/api-gateway/logs/api-gateway/combined-2026-04-03.log",
11+
"hash": "c7cbae51230f6462a24fb945013d0c16f235f1edffd64e8ccc6e1e33082c6291"
12+
},
13+
{
14+
"date": 1775813078341,
15+
"name": "/home/rashiee/Desktop/devxtra/car parking/autospace/nodejs-autospace/api-gateway/logs/api-gateway/combined-2026-04-10.log",
16+
"hash": "d9df00ecc60cf49cc6cc426a571eb6bd2fd04b4f257099851b1d0e4a30b898ab"
17+
}
18+
],
19+
"hashType": "sha256"
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"keep": {
3+
"days": true,
4+
"amount": 14
5+
},
6+
"auditLog": "/home/rashiee/Desktop/devxtra/car parking/autospace/nodejs-autospace/api-gateway/logs/api-gateway/.e56a6bccdaf6a68c2c8a1a53e0f6f6f84cc9bbd2-audit.json",
7+
"files": [
8+
{
9+
"date": 1775228033947,
10+
"name": "/home/rashiee/Desktop/devxtra/car parking/autospace/nodejs-autospace/api-gateway/logs/api-gateway/error-2026-04-03.log",
11+
"hash": "6666210d7c641e0df9e6e83114041006b26ad58b67dec4c06ca5cedc7c0cc047"
12+
},
13+
{
14+
"date": 1775813078338,
15+
"name": "/home/rashiee/Desktop/devxtra/car parking/autospace/nodejs-autospace/api-gateway/logs/api-gateway/error-2026-04-10.log",
16+
"hash": "9e4786b8c2e11d3bd62e4f48104054b4f5ae22e5d71627831c5b78fcf599bc71"
17+
}
18+
],
19+
"hashType": "sha256"
20+
}

nodejs-autospace/api-gateway/logs/api-gateway/combined-2026-04-03.log

Lines changed: 54 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{"level":"info","message":"AUTH_SERVICE_URL = http://localhost:4001","service":"api-gateway","timestamp":"2026-04-10T09:24:38.349Z"}
2+
{"level":"info","message":"server running on port 4000","service":"api-gateway","timestamp":"2026-04-10T09:24:38.364Z"}
3+
{"level":"info","message":"the health check on ","service":"api-gateway","timestamp":"2026-04-10T09:24:38.365Z"}
4+
{"level":"info","message":"::1 - - [10/Apr/2026:09:25:42 +0000] \"GET /api/auth/me HTTP/1.1\" 401 127 \"http://localhost:3000/\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36\"","service":"api-gateway","timestamp":"2026-04-10T09:25:42.884Z"}
5+
{"level":"info","message":"::1 - - [10/Apr/2026:09:25:42 +0000] \"GET /api/auth/me HTTP/1.1\" 401 127 \"http://localhost:3000/\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36\"","service":"api-gateway","timestamp":"2026-04-10T09:25:42.898Z"}
6+
{"level":"info","message":"::1 - - [10/Apr/2026:09:25:42 +0000] \"OPTIONS /api/auth/refresh HTTP/1.1\" 204 0 \"http://localhost:3000/\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36\"","service":"api-gateway","timestamp":"2026-04-10T09:25:42.905Z"}
7+
{"level":"info","message":"::1 - - [10/Apr/2026:09:25:43 +0000] \"POST /api/auth/refresh HTTP/1.1\" 401 82 \"http://localhost:3000/\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36\"","service":"api-gateway","timestamp":"2026-04-10T09:25:43.015Z"}
8+
{"level":"info","message":"::1 - - [10/Apr/2026:09:26:15 +0000] \"OPTIONS /api/auth/login HTTP/1.1\" 204 0 \"http://localhost:3000/\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36\"","service":"api-gateway","timestamp":"2026-04-10T09:26:15.292Z"}
9+
{"level":"info","message":"::1 - - [10/Apr/2026:09:26:17 +0000] \"POST /api/auth/login HTTP/1.1\" 200 164 \"http://localhost:3000/\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36\"","service":"api-gateway","timestamp":"2026-04-10T09:26:17.651Z"}
10+
{"level":"info","message":"::1 - - [10/Apr/2026:09:26:17 +0000] \"GET /api/auth/me HTTP/1.1\" 200 135 \"http://localhost:3000/\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36\"","service":"api-gateway","timestamp":"2026-04-10T09:26:17.696Z"}
11+
{"level":"info","message":"::1 - - [10/Apr/2026:09:26:18 +0000] \"GET /api/auth/me HTTP/1.1\" 304 - \"http://localhost:3000/\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36\"","service":"api-gateway","timestamp":"2026-04-10T09:26:18.861Z"}
12+
{"level":"info","message":"::1 - - [10/Apr/2026:09:26:18 +0000] \"GET /api/auth/me HTTP/1.1\" 304 - \"http://localhost:3000/\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36\"","service":"api-gateway","timestamp":"2026-04-10T09:26:18.882Z"}
13+
{"level":"info","message":"::1 - - [10/Apr/2026:09:26:29 +0000] \"GET /api/public/user/garages?lat=9.9679032&lng=76.2444378 HTTP/1.1\" 200 2940 \"http://localhost:3000/\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36\"","service":"api-gateway","timestamp":"2026-04-10T09:26:29.246Z"}
14+
{"level":"info","message":"::1 - - [10/Apr/2026:09:26:29 +0000] \"GET /api/public/user/garages?lat=9.9679032&lng=76.2444378 HTTP/1.1\" 304 - \"http://localhost:3000/\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36\"","service":"api-gateway","timestamp":"2026-04-10T09:26:29.711Z"}
15+
{"level":"info","message":"::1 - - [10/Apr/2026:09:26:33 +0000] \"GET /api/public/user/garages/85b6fa7d-eaec-4dae-8087-ed1f4eaf178f HTTP/1.1\" 500 53 \"http://localhost:3000/\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36\"","service":"api-gateway","timestamp":"2026-04-10T09:26:33.715Z"}
16+
{"level":"info","message":"::1 - - [10/Apr/2026:09:26:33 +0000] \"GET /api/public/user/garages/85b6fa7d-eaec-4dae-8087-ed1f4eaf178f HTTP/1.1\" 500 53 \"http://localhost:3000/\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36\"","service":"api-gateway","timestamp":"2026-04-10T09:26:33.754Z"}
17+
{"level":"info","message":"::1 - - [10/Apr/2026:09:26:44 +0000] \"GET /api/public/user/garages?lat=9.9679032&lng=76.2444378 HTTP/1.1\" 304 - \"http://localhost:3000/\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36\"","service":"api-gateway","timestamp":"2026-04-10T09:26:44.622Z"}
18+
{"level":"info","message":"::1 - - [10/Apr/2026:09:26:45 +0000] \"GET /api/public/user/garages?lat=9.9679032&lng=76.2444378 HTTP/1.1\" 304 - \"http://localhost:3000/\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36\"","service":"api-gateway","timestamp":"2026-04-10T09:26:45.116Z"}

0 commit comments

Comments
 (0)