@edirect/logger 11.0.48 → 11.0.49

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.
package/README.md CHANGED
@@ -91,38 +91,38 @@ export class OrderService {
91
91
 
92
92
  ### `LoggerService` methods
93
93
 
94
- | Method | Signature | Description |
95
- |--------|-----------|-------------|
96
- | `log` | `(message: string, payload?: string): void` | Alias for `info` |
97
- | `info` | `(message: string, payload?: string): void` | Log at INFO level |
98
- | `warn` | `(message: string, payload?: string): void` | Log at WARN level |
99
- | `error` | `(message: string, trace: string): void` | Log at ERROR level |
100
- | `debug` | `(message: string): void` | Log at DEBUG level |
101
- | `verbose` | `(message: string): void` | Log at VERBOSE level (maps to INFO internally) |
102
- | `setSessionId` | `(sessionId: string): void` | Attach a session ID to all subsequent log entries |
103
- | `setQuoteId` | `(quoteId: string): void` | Attach a quote/correlation ID to all subsequent log entries |
94
+ | Method | Signature | Description |
95
+ | -------------- | ------------------------------------------- | ----------------------------------------------------------- |
96
+ | `log` | `(message: string, payload?: string): void` | Alias for `info` |
97
+ | `info` | `(message: string, payload?: string): void` | Log at INFO level |
98
+ | `warn` | `(message: string, payload?: string): void` | Log at WARN level |
99
+ | `error` | `(message: string, trace: string): void` | Log at ERROR level |
100
+ | `debug` | `(message: string): void` | Log at DEBUG level |
101
+ | `verbose` | `(message: string): void` | Log at VERBOSE level (maps to INFO internally) |
102
+ | `setSessionId` | `(sessionId: string): void` | Attach a session ID to all subsequent log entries |
103
+ | `setQuoteId` | `(quoteId: string): void` | Attach a quote/correlation ID to all subsequent log entries |
104
104
 
105
105
  ### `LoggerModuleOptions`
106
106
 
107
- | Option | Type | Default | Description |
108
- |--------|------|---------|-------------|
109
- | `level` | `pino.Level` | `'info'` | Minimum log level |
110
- | `name` | `string` | `npm_package_name \| 'app'` | Service name in every log entry |
111
- | `version` | `string` | `npm_package_version \| '0.0.0'` | Service version in every log entry |
112
- | `host` | `string` | `'0.0.0.0'` | Host tag |
113
- | `protocol` | `string` | `'http'` | Protocol tag |
107
+ | Option | Type | Default | Description |
108
+ | ---------- | ------------ | -------------------------------- | ---------------------------------- |
109
+ | `level` | `pino.Level` | `'info'` | Minimum log level |
110
+ | `name` | `string` | `npm_package_name \| 'app'` | Service name in every log entry |
111
+ | `version` | `string` | `npm_package_version \| '0.0.0'` | Service version in every log entry |
112
+ | `host` | `string` | `'0.0.0.0'` | Host tag |
113
+ | `protocol` | `string` | `'http'` | Protocol tag |
114
114
 
115
115
  ## Environment Variables
116
116
 
117
117
  When options are not passed explicitly, the logger reads from environment variables:
118
118
 
119
- | Variable | Description | Default |
120
- |----------|-------------|---------|
121
- | `LOGS_LEVEL` | Log level (`trace`, `debug`, `info`, `warn`, `error`, `fatal`) | `info` |
122
- | `LOGS_HOST` | Host tag in log entries | `0.0.0.0` |
123
- | `LOGS_PROTOCOL` | Protocol tag in log entries | `http` |
124
- | `APP_NAME` | Service name | `npm_package_name` or `app` |
125
- | `APP_VERSION` | Service version | `npm_package_version` or `0.0.0` |
119
+ | Variable | Description | Default |
120
+ | --------------- | -------------------------------------------------------------- | -------------------------------- |
121
+ | `LOGS_LEVEL` | Log level (`trace`, `debug`, `info`, `warn`, `error`, `fatal`) | `info` |
122
+ | `LOGS_HOST` | Host tag in log entries | `0.0.0.0` |
123
+ | `LOGS_PROTOCOL` | Protocol tag in log entries | `http` |
124
+ | `APP_NAME` | Service name | `npm_package_name` or `app` |
125
+ | `APP_VERSION` | Service version | `npm_package_version` or `0.0.0` |
126
126
 
127
127
  ## Log Output Format
128
128
 
package/dist/README.md CHANGED
@@ -91,38 +91,38 @@ export class OrderService {
91
91
 
92
92
  ### `LoggerService` methods
93
93
 
94
- | Method | Signature | Description |
95
- |--------|-----------|-------------|
96
- | `log` | `(message: string, payload?: string): void` | Alias for `info` |
97
- | `info` | `(message: string, payload?: string): void` | Log at INFO level |
98
- | `warn` | `(message: string, payload?: string): void` | Log at WARN level |
99
- | `error` | `(message: string, trace: string): void` | Log at ERROR level |
100
- | `debug` | `(message: string): void` | Log at DEBUG level |
101
- | `verbose` | `(message: string): void` | Log at VERBOSE level (maps to INFO internally) |
102
- | `setSessionId` | `(sessionId: string): void` | Attach a session ID to all subsequent log entries |
103
- | `setQuoteId` | `(quoteId: string): void` | Attach a quote/correlation ID to all subsequent log entries |
94
+ | Method | Signature | Description |
95
+ | -------------- | ------------------------------------------- | ----------------------------------------------------------- |
96
+ | `log` | `(message: string, payload?: string): void` | Alias for `info` |
97
+ | `info` | `(message: string, payload?: string): void` | Log at INFO level |
98
+ | `warn` | `(message: string, payload?: string): void` | Log at WARN level |
99
+ | `error` | `(message: string, trace: string): void` | Log at ERROR level |
100
+ | `debug` | `(message: string): void` | Log at DEBUG level |
101
+ | `verbose` | `(message: string): void` | Log at VERBOSE level (maps to INFO internally) |
102
+ | `setSessionId` | `(sessionId: string): void` | Attach a session ID to all subsequent log entries |
103
+ | `setQuoteId` | `(quoteId: string): void` | Attach a quote/correlation ID to all subsequent log entries |
104
104
 
105
105
  ### `LoggerModuleOptions`
106
106
 
107
- | Option | Type | Default | Description |
108
- |--------|------|---------|-------------|
109
- | `level` | `pino.Level` | `'info'` | Minimum log level |
110
- | `name` | `string` | `npm_package_name \| 'app'` | Service name in every log entry |
111
- | `version` | `string` | `npm_package_version \| '0.0.0'` | Service version in every log entry |
112
- | `host` | `string` | `'0.0.0.0'` | Host tag |
113
- | `protocol` | `string` | `'http'` | Protocol tag |
107
+ | Option | Type | Default | Description |
108
+ | ---------- | ------------ | -------------------------------- | ---------------------------------- |
109
+ | `level` | `pino.Level` | `'info'` | Minimum log level |
110
+ | `name` | `string` | `npm_package_name \| 'app'` | Service name in every log entry |
111
+ | `version` | `string` | `npm_package_version \| '0.0.0'` | Service version in every log entry |
112
+ | `host` | `string` | `'0.0.0.0'` | Host tag |
113
+ | `protocol` | `string` | `'http'` | Protocol tag |
114
114
 
115
115
  ## Environment Variables
116
116
 
117
117
  When options are not passed explicitly, the logger reads from environment variables:
118
118
 
119
- | Variable | Description | Default |
120
- |----------|-------------|---------|
121
- | `LOGS_LEVEL` | Log level (`trace`, `debug`, `info`, `warn`, `error`, `fatal`) | `info` |
122
- | `LOGS_HOST` | Host tag in log entries | `0.0.0.0` |
123
- | `LOGS_PROTOCOL` | Protocol tag in log entries | `http` |
124
- | `APP_NAME` | Service name | `npm_package_name` or `app` |
125
- | `APP_VERSION` | Service version | `npm_package_version` or `0.0.0` |
119
+ | Variable | Description | Default |
120
+ | --------------- | -------------------------------------------------------------- | -------------------------------- |
121
+ | `LOGS_LEVEL` | Log level (`trace`, `debug`, `info`, `warn`, `error`, `fatal`) | `info` |
122
+ | `LOGS_HOST` | Host tag in log entries | `0.0.0.0` |
123
+ | `LOGS_PROTOCOL` | Protocol tag in log entries | `http` |
124
+ | `APP_NAME` | Service name | `npm_package_name` or `app` |
125
+ | `APP_VERSION` | Service version | `npm_package_version` or `0.0.0` |
126
126
 
127
127
  ## Log Output Format
128
128
 
package/dist/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "@edirect/config": "^11.0.48",
20
- "@nestjs/common": "^11.1.15",
20
+ "@nestjs/common": "^11.1.16",
21
21
  "pino": "10.3.1",
22
22
  "supertest": "7.2.2",
23
23
  "tslib": "^2.8.1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edirect/logger",
3
- "version": "11.0.48",
3
+ "version": "11.0.49",
4
4
  "packageScope": "@edirect",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
@@ -17,11 +17,11 @@
17
17
  "dist"
18
18
  ],
19
19
  "dependencies": {
20
- "@nestjs/common": "^11.1.15",
20
+ "@nestjs/common": "^11.1.16",
21
21
  "pino": "10.3.1",
22
22
  "supertest": "7.2.2",
23
23
  "tslib": "^2.8.1",
24
- "@edirect/config": "11.0.48"
24
+ "@edirect/config": "11.0.49"
25
25
  },
26
26
  "nx": {
27
27
  "name": "@edirect/logger",