@nest-omni/core 4.1.3-30 → 4.1.3-31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nest-omni/core",
3
- "version": "4.1.3-30",
3
+ "version": "4.1.3-31",
4
4
  "description": "A comprehensive NestJS framework for building enterprise-grade applications with best practices",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -243,12 +243,21 @@ let ApiConfigService = ApiConfigService_1 = class ApiConfigService {
243
243
  }
244
244
  // For production or when email is enabled
245
245
  // Prepare multistream targets
246
- const streams = [
247
- {
246
+ const streams = [];
247
+ // In dev mode with email, use pino-pretty for console output
248
+ if (this.isDev && emailEnabled) {
249
+ streams.push({
250
+ level: 'trace',
251
+ stream: require('pino-pretty')(),
252
+ });
253
+ }
254
+ else {
255
+ // Production or without email, use raw stdout
256
+ streams.push({
248
257
  level: 'trace',
249
258
  stream: process.stdout,
250
- },
251
- ];
259
+ });
260
+ }
252
261
  // Add email transport if enabled
253
262
  if (emailEnabled && emailConfig) {
254
263
  try {
@@ -266,7 +275,7 @@ let ApiConfigService = ApiConfigService_1 = class ApiConfigService {
266
275
  return {
267
276
  pinoHttp: {
268
277
  genReqId: (req) => req.id,
269
- // Use multistream for combining console and email output
278
+ // Use multistream for combining console (pino-pretty) and email output
270
279
  stream: pino_1.default.multistream(streams),
271
280
  level: this.isDev ? 'debug' : 'info',
272
281
  customLogLevel: function (res) {