namespace DodoSSH.Api.Setup;
///
/// Source-generated log messages for startup and health.
///
///
/// [LoggerMessage] rather than ILogger extension calls: allocation-free, and the
/// event ids and message templates become a stable, greppable inventory instead of string literals
/// scattered through wiring code.
///
internal static partial class StartupLog
{
[LoggerMessage(
EventId = 1001,
Level = LogLevel.Warning,
Message = "Oidc:RequireHttpsMetadata is false outside Development. Token signing keys are "
+ "being fetched over plaintext HTTP, so anyone on the network path can serve their "
+ "own keys and mint tokens this server will accept.")]
internal static partial void InsecureMetadataOutsideDevelopment(ILogger logger);
[LoggerMessage(
EventId = 1002,
Level = LogLevel.Warning,
Message = "Oidc:AllowEmailLinking is enabled. A token from any configured provider "
+ "carrying a victim's email address will be linked to that victim's existing account. "
+ "Only enable this when every configured provider verifies email ownership.")]
internal static partial void EmailLinkingEnabled(ILogger logger);
[LoggerMessage(
EventId = 1010,
Level = LogLevel.Critical,
Message = "Database schema is out of date: {PendingCount} migration(s) pending "
+ "({PendingMigrations}). Readiness will fail until the migrator has run.")]
internal static partial void PendingMigrations(
ILogger logger,
int pendingCount,
string pendingMigrations);
}