unnbound-logger-sdk 1.1.0 → 1.1.1

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.
@@ -137,11 +137,6 @@ class UnnboundLogger {
137
137
  ...(this.serviceName && { service: this.serviceName }),
138
138
  ...(this.environment && { environment: this.environment }),
139
139
  },
140
- formatters: {
141
- level: (label) => {
142
- return { level: label };
143
- },
144
- },
145
140
  timestamp: () => `,"timestamp":"${new Date().toISOString()}"`,
146
141
  });
147
142
  }
@@ -180,7 +175,6 @@ class UnnboundLogger {
180
175
  stack: message.stack,
181
176
  };
182
177
  logEntry = {
183
- level,
184
178
  type: 'general',
185
179
  message: message.message,
186
180
  traceId,
@@ -190,7 +184,6 @@ class UnnboundLogger {
190
184
  }
191
185
  else if (typeof message === 'string') {
192
186
  logEntry = {
193
- level,
194
187
  type: 'general',
195
188
  message,
196
189
  traceId,
@@ -200,7 +193,6 @@ class UnnboundLogger {
200
193
  else {
201
194
  // If message is an object, stringify it
202
195
  logEntry = {
203
- level,
204
196
  type: 'general',
205
197
  message: JSON.stringify(message),
206
198
  traceId,
@@ -258,7 +250,6 @@ class UnnboundLogger {
258
250
  req.res.locals.traceId = traceId;
259
251
  }
260
252
  const logEntry = {
261
- level: options.level || this.defaultLevel,
262
253
  type: 'httpRequest',
263
254
  message: `${req.method} ${req.originalUrl || req.url}`,
264
255
  traceId,
@@ -300,7 +291,6 @@ class UnnboundLogger {
300
291
  }
301
292
  }
302
293
  const logEntry = {
303
- level,
304
294
  type: 'httpResponse',
305
295
  message: `${req.method} ${req.originalUrl || req.url} - ${res.statusCode}`,
306
296
  traceId,
@@ -328,7 +318,6 @@ class UnnboundLogger {
328
318
  const duration = options.duration || (options.startTime ? Date.now() - options.startTime : 0);
329
319
  const level = operation.status === 'success' ? 'info' : 'error';
330
320
  const logEntry = {
331
- level,
332
321
  type: 'sftpTransaction',
333
322
  message: `SFTP ${operation.operation} ${operation.status} - ${operation.path}`,
334
323
  traceId,
@@ -349,7 +338,6 @@ class UnnboundLogger {
349
338
  const duration = options.duration || (options.startTime ? Date.now() - options.startTime : 0);
350
339
  const level = query.status === 'success' ? 'info' : 'error';
351
340
  const logEntry = {
352
- level,
353
341
  type: 'dbQueryTransaction',
354
342
  message: `DB Query ${query.status} - ${query.vendor}`,
355
343
  traceId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unnbound-logger-sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A structured logging library with TypeScript support using Pino. Provides consistent, well-typed logging across different operational contexts with automatic trace ID propagation.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",