Drop the Scene entity/grouping in favor of chapters carrying prose directly and beats belonging to many characters. Add markdown editor + character multi-select components to the web client. Remove all XML doc and inline comments across the touched C#/TS/CSS files in favor of self-documenting names, and record that convention in CLAUDE.md. Add .mcp.json (local MCP server config, no secrets) and ignore .idea/.
19 lines
655 B
C#
19 lines
655 B
C#
using Microsoft.Extensions.Logging;
|
|
|
|
namespace Novelly.Api.Tests;
|
|
|
|
public record CapturedLogEntry(LogLevel Level, string Message, Exception? Exception);
|
|
|
|
public class CapturingLogger<T> : ILogger<T>
|
|
{
|
|
public List<CapturedLogEntry> Entries { get; } = [];
|
|
|
|
public IDisposable? BeginScope<TState>(TState state) where TState : notnull => null;
|
|
|
|
public bool IsEnabled(LogLevel logLevel) => true;
|
|
|
|
public void Log<TState>(
|
|
LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) =>
|
|
Entries.Add(new CapturedLogEntry(logLevel, formatter(state, exception), exception));
|
|
}
|