Files
novelly/src/Novelly.Api/appsettings.json
T
James Wampler 04917fa09e Add Serilog console logging across the API
Information at endpoint and service-method boundaries, Debug in deeper
helpers, Warning before expected/recoverable failures (not-found,
validation, agent tool errors), Error on caught exceptions. Serilog
wraps the exception handler so request-completion logs report the
resolved status code rather than the raw exception. Never logs prose
bodies or the Anthropic API key.
2026-08-06 12:11:20 -07:00

34 lines
786 B
JSON

{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Microsoft.EntityFrameworkCore.Database.Command": "Warning"
}
},
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Novelly": "Information",
"Microsoft.AspNetCore": "Warning",
"Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware": "Fatal",
"Microsoft.EntityFrameworkCore.Database.Command": "Warning"
}
}
},
"AllowedHosts": "*",
"ConnectionStrings": {
"Novel": "Data Source=novel.db"
},
"Cors": {
"Origins": [ "http://localhost:5173" ]
},
"Agent": {
"Model": "claude-opus-5",
"MaxTokens": 16000,
"Effort": "high",
"MaxIterations": 12
}
}