Loading...
Loading...
Configures structured logging (Serilog/.NET, structlog/Python)
npx skill4agent add levnikolaevich/claude-code-skills ln-771-logging-configurator| Aspect | Details |
|---|---|
| Input | Context Store from ln-770 |
| Output | Logging configuration files |
| Stacks | .NET (Serilog), Python (structlog) |
STACKFRAMEWORKFRAMEWORK_VERSIONPROJECT_ROOTENVIRONMENTSTACKMCP ref: "Serilog ASP.NET Core structured logging configuration"
Context7: /serilog/serilog-aspnetcoreMCP ref: "structlog Python structured logging configuration"
Context7: /hynek/structlog| Option | When to Use |
|---|---|
| JSON (Recommended for Production) | Machine-readable, log aggregation systems |
| Pretty/Colored (Recommended for Development) | Human-readable, local debugging |
| Field | Description | Default |
|---|---|---|
| Request tracking across services | ✓ Yes |
| Authenticated user identifier | ✓ Yes |
| HTTP request path | ✓ Yes |
| Request duration in ms | ✓ Yes |
| Server hostname | Optional |
| Thread identifier | Optional |
| Sink | Use Case |
|---|---|
| Console | Always enabled |
| File | Local persistence, log rotation |
| Seq | Structured log server |
| Elasticsearch | Log aggregation at scale |
| Level | Development | Production |
|---|---|---|
| Default | Debug | Information |
| Microsoft.* | Information | Warning |
| System.* | Information | Warning |
| Application | Debug | Information |
| File | Purpose |
|---|---|
| Service registration |
| Serilog configuration |
| Dev overrides |
Serilog.AspNetCoreSerilog.Sinks.ConsoleSerilog.Sinks.FileSerilog.Enrichers.Environment| File | Purpose |
|---|---|
| structlog configuration |
| Request logging |
structlogpython-json-loggerdotnet list package | grep Serilogpip list | grep structlogdotnet build --no-restorepython -m py_compile core/logging_config.py{
"timestamp": "2026-01-10T12:00:00.000Z",
"level": "info",
"message": "Request completed",
"correlationId": "abc-123",
"requestPath": "/api/health",
"responseTime": 45,
"statusCode": 200
}{
"status": "success",
"files_created": [
"Extensions/LoggingExtensions.cs",
"appsettings.json"
],
"packages_added": [
"Serilog.AspNetCore",
"Serilog.Sinks.Console"
],
"registration_code": "services.AddLoggingServices(configuration);",
"message": "Configured structured logging with Serilog"
}{ "status": "skipped", "message": "Logging already configured" }