Coding task · NestJS course · Module 6: Error Handling and Monitoring

Structured Log with Context

Implement a logging method with context and metadata

Task

Complete the logWithContext(level, message, context, metadata) method that logs to Winston with timestamp, context (e.g., 'AuthService'), and additional metadata as a JSON object