@tmlmobilidade/fastify 20260110.331.4 → 20260113.1437.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,6 +31,8 @@ const loggerOptions = {
31
31
  message: c.whiteBright,
32
32
  method: c.greenBright,
33
33
  methodLabel: c.gray,
34
+ path: c.blueBright,
35
+ pathLabel: c.gray,
34
36
  pipe: c.cyanBright,
35
37
  reqId: c.cyanBright,
36
38
  reqIdLabel: c.gray,
@@ -67,6 +69,7 @@ const loggerOptions = {
67
69
  const reqId = log.reqId ? safe(log.reqId).padEnd(10, ' ') : Array(10).fill('-').join('');
68
70
  const statusCode = typeof log.res === 'object' && log.res && 'statusCode' in log.res ? safe(log.res.statusCode).padEnd(3, '-') : '---';
69
71
  const method = typeof log.req === 'object' && log.req && 'method' in log.req ? formatMethod(log.req.method ?? '') : '-----';
72
+ const path = typeof log.req === 'object' && log.req && 'url' in log.req ? safe(log.req.url).padEnd(10, ' ') : '-----';
70
73
  // Extract error information
71
74
  // Pino serializes errors, so log.err is an object with type, message, stack, etc.
72
75
  const errorObj = log.err || log.error;
@@ -90,6 +93,7 @@ const loggerOptions = {
90
93
  palette.reqIdLabel(`reqId: ${palette.reqId(reqId)}`),
91
94
  palette.statusLabel(`statusCode: ${palette.status(statusCode)}`),
92
95
  palette.methodLabel(`Method: ${palette.method(method)}`),
96
+ palette.pathLabel(`Path: ${palette.path(path)}`),
93
97
  message,
94
98
  ];
95
99
  return palette.pipe(parts.join(' | ')) + stackTrace;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/fastify",
3
- "version": "20260110.331.4",
3
+ "version": "20260113.1437.46",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"