=== Testing Logger Utility ===

Test 1: Logging error message...
✓ Error logged successfully
Test 2: Logging warning message...
✓ Warning logged successfully
Test 3: Logging info message...
✓ Info logged successfully

Test 4: Retrieving recent logs...
✓ Retrieved 10 log entries

Most recent log entries:
  [2026-07-03 00:13:27] [info] Test info message {"operation":"allocation","amount":100000}
  [2026-07-03 00:13:27] [warning] Test warning message {"symbol":"AAPL","price_age":55}
  [2026-07-03 00:13:27] [error] Test error message {"user_id":123,"action":"login"}

=== Testing Response Utility ===

Test 5: Checking error code constants...
  AUTH_REQUIRED = AUTH_REQUIRED
  INVALID_CREDENTIALS = INVALID_CREDENTIALS
  INSUFFICIENT_BALANCE = INSUFFICIENT_BALANCE
  INVALID_INPUT = INVALID_INPUT
  NOT_FOUND = NOT_FOUND
  DUPLICATE_EMAIL = DUPLICATE_EMAIL
  DATABASE_ERROR = DATABASE_ERROR
  API_ERROR = API_ERROR
  STALE_PRICE = STALE_PRICE
✓ All error code constants defined

Test 6: Verifying Response methods...
  ✓ Method success() exists
  ✓ Method error() exists
  ✓ Method json() exists

Test 7: Testing response structure...
{
    "success": true,
    "data": {
        "user_id": 1,
        "name": "Test User"
    },
    "message": "User created successfully"
}