mediumEngineering Practices#80

Error logging service

Prompt

Create a simple error logging service that captures error messages, stack traces, and timestamps, storing them in memory and exposing a getAll method. It should handle both Error objects and plain string errors.

Hints

Solution

Your Code

10 min

Tests

Click Run to test your code