Skip to main content
Interactive Lab

Logging Lab

Configure and test structured logging with Console, Application Insights, File, Serilog, and NLog targets.

Simulated
Logging
Mode: Simulated
This lab runs fully in simulation mode. No backend required.

Console Configuration

Common Settings

PII Masking Configuration

Test Log Emission

Log Stream (Simulated)

// Enter a message and click "Emit Log"

// Logs will appear here as you emit them

Generated appsettings.json
{
  "PrimusLogging": {
    "ApplicationId": "my-api",
    "Environment": "Development",
    "MinLevel": 1,
    "Targets": [
      {
        "Type": "console",
        "Pretty": true
      }
    ],
    "Pii": {
      "MaskEmails": true,
      "MaskCreditCards": true,
      "MaskSSN": true
    }
  }
}