diff --git a/deploy/docker/docker-compose.yml b/deploy/docker/docker-compose.yml index 8ca8370d..a2d67328 100644 --- a/deploy/docker/docker-compose.yml +++ b/deploy/docker/docker-compose.yml @@ -42,8 +42,19 @@ services: # admin panel's Settings. # CHRONOS_PARALLELISM: "4" # CHRONOS_PRIORITY_QUEUE: "true" - # Trace, Debug, Information, Warning or Error + # The log files' and the console's level: Trace, Debug, Information, Warning, Error, Critical or None CHRONOS_LOG_LEVEL: Information + # The log files (/data/logs) and the audit log: the console's own level, the days files are kept, the size (MB) at + # which a file continues in a numbered one and that of all files (the oldest go beyond it; 0: no limit for either), + # daily or hourly files, the days audit entries are kept (0: forever) and the MB of each log in the diagnostics zip. + # Set here, they can no longer be changed in the admin panel's Settings › Logs. + # CHRONOS_LOG_CONSOLE_LEVEL: Warning + # CHRONOS_LOG_RETENTION_DAYS: "14" + # CHRONOS_LOG_MAX_FILE_MB: "50" + # CHRONOS_LOG_MAX_TOTAL_MB: "1024" + # CHRONOS_LOG_ROTATION: daily + # CHRONOS_AUDIT_RETENTION_DAYS: "0" + # CHRONOS_DIAGNOSTICS_LOG_MB: "4" # The admin panel shows the archive volume's free space. An Unraid share (/mnt/user/) reports its primary # storage, often the cache: map the share's array view to /space (volumes below) and show that one instead. # CHRONOS_SPACE_PATH: /space diff --git a/deploy/releases-repo/README.md b/deploy/releases-repo/README.md index bfdf8de6..469fb8db 100644 --- a/deploy/releases-repo/README.md +++ b/deploy/releases-repo/README.md @@ -87,6 +87,11 @@ admin panel shows under Settings so you can compare them. - Upgrade: `docker compose pull && docker compose up -d`. Jobs in progress resume from their last checkpoint. - All settings: environment variables `CHRONOS_*` (see `docker-compose.yml`) or `/data/server.json`. Run `docker run --rm gitea.encke-hake.ts.net/balbosoft/chronos-server:latest --help` for the list. +- Logs: `/data/logs/server-yyyyMMdd.log`, or one file per hour with `CHRONOS_LOG_ROTATION=hourly` (UTC). A file + continues in `.1.log`, `.2.log`… at 50 MB (`CHRONOS_LOG_MAX_FILE_MB`), files are kept 14 days + (`CHRONOS_LOG_RETENTION_DAYS`) and the oldest go when all of them pass 1024 MB (`CHRONOS_LOG_MAX_TOTAL_MB`; 0: no + limit). `CHRONOS_LOG_LEVEL` sets the level of the files and the console, `CHRONOS_LOG_CONSOLE_LEVEL` the console's + alone. Without these variables the admin panel changes them in Settings › Logs while the server runs. - Other host ports: when you publish the container's ports as other host ports (`18443:8443`), set `CHRONOS_PUBLIC_HTTPS_PORT` (and `CHRONOS_PUBLIC_HTTP_PORT`) to the host ports, so the admin panel's redirect to HTTPS and LAN discovery name the ports clients can reach. diff --git a/deploy/unraid/chronos.xml b/deploy/unraid/chronos.xml index a0f2c6f5..8f79b701 100644 --- a/deploy/unraid/chronos.xml +++ b/deploy/unraid/chronos.xml @@ -41,7 +41,14 @@ Chronos Server - Information + Information + + + + + + + 99 100 Europe/Rome diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 8fff3b44..e4a73041 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -45,7 +45,7 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S | `Naming` | Folder/file templates and tokens | | `Model` | Domain entities and enums (§5) shared by Data, Server and clients | | `Packaging` | TPK1 installer payload writer/reader, staged install transaction | -| `Diagnostics` | `Log`, file sink, synthetic sequences, `SecretScrubber`, `DiagnosticsArchive` (scrubbed diagnostics zip) | +| `Diagnostics` | `Log`, `FileLogSink` with `LogFileOptions` (level, daily or hourly files, numbered parts past a size, pruning by age and by the total size, never the file being written), synthetic sequences, `SecretScrubber`, `DiagnosticsArchive` (scrubbed diagnostics zip) | | `Localization`, `IO`, `Hashing`, `Branding` | `Loc`/plural rules, `AtomicFile`, `StartupCommand` (sign-in entries of the programs, moved or removed by setup), CRC-32/SHA helpers, brand mark geometry | ### 2.2 Chronos.Data @@ -71,8 +71,8 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S | `Import` | `CardPool` (inserted cards, remembered cards, folders), camera profiles, plans and choices, destinations (archive, folder, server through `ServerImportSink`), card actions (verified delete, format, eject) | | `Archive` | `CurrentArchive`, `ArchiveTree`, figures for the charts, maintenance reports, mass rename and move, delete and trash dialogs (`SequenceDeletion`, `DeletePlans`), `ArchiveFailures` | | `Server` | `ServerSession`, `ConnectFlow` (trust on first use), `SyncHost` (sync engine, agent, metered hold, editor connections, Export Sync), sync table, `RemoteSequenceApi` | -| `Jobs`, `Settings`, `About` | Job list and buffering, `JobNotices` (which job endings raise a toast; `JobEndings` lets a batch speak once); settings rows, encoder and format inventories, `ProcessingTuning` (Settings › Rendering and Analysis applied to each job: parallelism, memory budget, quality), `InterfacePriority`, language catalog, naming preview; `AboutViewModel` (owned by the shell, not a section: Settings › About, the update notice of Settings › Updates and the update check on start), update check and download | -| `Infrastructure` | `AppServices` (composition root), `AppSettings`, `AppEnvironment` (installed or portable), `AppClock` (today's date, frozen by `--capture`), `StartWithWindows` (this copy's sign-in entry), `UiLanguage`, `LiveRegion`, `RenderNodeHost`, `DiagnosticsBundle`, `ShellActions` (BRIEF §8.6), `SingleInstance` (one Chronos per data folder; a later launch hands its file over a named pipe, or waits for a closing one to exit and starts in its place), device monitor | +| `Jobs`, `Settings`, `About` | Job list and buffering, `JobNotices` (which job endings raise a toast; `JobEndings` lets a batch speak once); settings rows (`LogSettingsRows`: Advanced's log rows), encoder and format inventories, `ProcessingTuning` (Settings › Rendering and Analysis applied to each job: parallelism, memory budget, quality), `InterfacePriority`, language catalog, naming preview; `AboutViewModel` (owned by the shell, not a section: Settings › About, the update notice of Settings › Updates and the update check on start), update check and download | +| `Infrastructure` | `AppServices` (composition root), `AppSettings`, `AppLogging` (Settings › Advanced › Logs applied to the log files at start and at every save), `AppEnvironment` (installed or portable), `AppClock` (today's date, frozen by `--capture`), `StartWithWindows` (this copy's sign-in entry), `UiLanguage`, `LiveRegion`, `RenderNodeHost`, `DiagnosticsBundle`, `ShellActions` (BRIEF §8.6), `SingleInstance` (one Chronos per data folder; a later launch hands its file over a named pipe, or waits for a closing one to exit and starts in its place), device monitor | | `DesignTime` | `SampleData`: the archive, jobs and server the screenshots and smoke tests run on, dated from the fixed `SampleData.Now` | ### 2.4 Chronos.Ui and Chronos.Server @@ -86,7 +86,7 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S | `Server/Api`, `Server/Events` | Endpoint groups (`XxxEndpoints.Map`), API errors, the WebSocket `EventHub` | | `Server/Security` | Accounts, password hashing, tokens, session cookies, login guard, access rules, audit log | | `Server/Storage`, `Server/Jobs` | Archive and processing modules, uploads, render store; `JobEngineHost`, render node service, monitor and availability | -| `Server/Hosting`, `Server/Admin/web` | `ServerHost`, certificates, discovery beacon, embedded static files, Windows service (start and stop failures in the Application event log); the admin panel (ES modules, one per page) | +| `Server/Hosting`, `Server/Admin/web` | `ServerHost`, `ServerLogging` (console and file levels the logging filters read at every line, the file sink's limits, the engine's level; applied again when Settings › Logs is saved), certificates, discovery beacon, embedded static files, Windows service (start and stop failures in the Application event log); the admin panel (ES modules, one per page) | ### 2.5 Hosts diff --git a/i18n/en/Admin.resx b/i18n/en/Admin.resx index a0f160dc..d449f679 100644 --- a/i18n/en/Admin.resx +++ b/i18n/en/Admin.resx @@ -274,8 +274,14 @@ Uploader Viewer About + Keep audit (days) + Days audit entries are kept before the housekeeping deletes them; 0: forever Chunk size (MiB) Size of each upload chunk; smaller chunks resume faster on poor links + Console level + Least severe level written to the console, the container's log + Diagnostics logs (MB) + How much of the end of each log file the diagnostics zip includes LAN discovery Announce this server on the local network so clients find it Fingerprint @@ -290,8 +296,27 @@ Jobs Language Language of server messages when a client asks for none + Critical + Debug + Error + Information + Off + Trace + Warning Limits and retention Set by the environment variable {0} + Set by the environment variable {0} or {1} + File level + Least severe level written to the log files; Debug and Trace help find problems but fill the files fast + File size (MB) + A log file that reaches this size continues in a new numbered file; 0: no limit + Logs total (MB) + When the log files together exceed this size, the oldest are deleted, never the one being written; 0: no limit + Keep logs (days) + Log files last written longer ago are deleted + Rotation + Start a new log file every day or every hour (UTC) + Logs Max file (MB) Largest single upload accepted Network and TLS @@ -308,6 +333,8 @@ TLS mode is Reverse proxy, but this page did not come through a trusted proxy over HTTPS. Open it through your proxy, or add the proxy's address to CHRONOS_TRUSTED_PROXIES. Restart required Saved ports, TLS, workers, chunk size or job history apply after a restart + Daily + Hourly Server Server name Name shown to clients and on the LAN diff --git a/i18n/en/Settings.resx b/i18n/en/Settings.resx index e5b5bd83..4840ef31 100644 --- a/i18n/en/Settings.resx +++ b/i18n/en/Settings.resx @@ -10,13 +10,26 @@ Data folder Data inside OneDrive Data kept outside OneDrivelong + {0} day + {0} days Diagnostics Diagnostics bundle saved + Diagnostics logs Save the diagnostics bundle to Earlier data unused Export bundle + File size + Keep logs + Debug + Error + Information + Trace + Warning + Log level Logs + Logs total No backups yet + No limit Portable mode Off On @@ -40,6 +53,9 @@ Restore the index of {0}?long Now: unreadable Index restored from a backuplong + Rotation + Daily + Hourly After import After a scan Deep analysis diff --git a/i18n/en/Tooltips.resx b/i18n/en/Tooltips.resx index e891913f..7a8ece3c 100644 --- a/i18n/en/Tooltips.resx +++ b/i18n/en/Tooltips.resx @@ -558,6 +558,7 @@ Sequences a scan finds (adopted folders, new sidecars) also get a deep analysis, in the background Server Chronos connects to at start; changing it signs out · Enter applies, Esc reverts Zip the logs, a system and codec report, settings and recent failed jobs into a folder you choose; passwords, tokens and photos are left out + How much of the end of each log file the diagnostics bundle includes Open the data this portable copy kept beside it before it ran from OneDrive. Chronos no longer uses it and leaves it as it is Save every setting as JSON, without the session token File name of each frame, for example {date}_{time}_{n:0000}; the extension is added · Enter applies, Esc reverts @@ -569,9 +570,13 @@ Leave this archive's settings as they are Keep the cache as it is Keep the index as it is + Log files last written longer ago are deleted Keep every setting as it is Language of the interface · applies immediately + A log file that reaches this size continues in a new numbered file + Least severe level written to the log files; Debug and Trace help find problems but fill the files fast Daily log files, kept for 14 days + When the log files together exceed this size, the oldest are deleted, never the one being written Frames stay in memory up to this budget, then spill to the cache folder Auto: a quarter of installed memory Back to Auto: a quarter of installed memory @@ -611,6 +616,7 @@ Keep the current index at the next start At the next start of Chronos, back up the current index and then restore this backup The chosen backup replaces the index when Chronos starts next + Start a new log file every day or every hour (UTC) Find a setting by name Encode a short synthetic clip with every encoder and report pass or fail and speed · about a minute Speed on the synthetic 1280×720 test clip diff --git a/i18n/it/Admin.it.resx b/i18n/it/Admin.it.resx index cd7a8be5..2bce5b32 100644 --- a/i18n/it/Admin.it.resx +++ b/i18n/it/Admin.it.resx @@ -273,8 +273,14 @@ Caricamento Lettore Informazioni + Conserva controllo (giorni) + Giorni di conservazione delle voci di controllo prima che la manutenzione le elimini; 0: per sempre Dimensione blocco (MiB) Dimensione di ogni blocco di caricamento; blocchi piccoli riprendono prima su linee lente + Livello console + Livello minimo scritto nella console, il log del container + Log diagnostica (MB) + Quanta parte finale di ogni file di log include lo zip di diagnostica Rilevamento LAN Annuncia questo server nella rete locale così che i client lo trovino Impronta @@ -289,8 +295,27 @@ Attività Lingua Lingua dei messaggi del server se il client non ne chiede una + Critico + Debug + Errore + Informazioni + Disattivato + Trace + Avviso Limiti e conservazione Impostato dalla variabile d'ambiente {0} + Impostato dalla variabile d'ambiente {0} o {1} + Livello file + Livello minimo scritto nei file di log; Debug e Trace aiutano a trovare i problemi ma riempiono i file in fretta + Dimensione file (MB) + Un file di log che raggiunge questa dimensione prosegue in un nuovo file numerato; 0: nessun limite + Totale log (MB) + Quando i file di log insieme superano questa dimensione, i più vecchi vengono eliminati, mai quello in scrittura; 0: nessun limite + Conserva log (giorni) + I file di log scritti l'ultima volta prima di questo periodo vengono eliminati + Rotazione + Inizia un nuovo file di log ogni giorno o ogni ora (UTC) + Log File massimo (MB) Caricamento singolo più grande accettato Rete e TLS @@ -307,6 +332,8 @@ La modalità TLS è Reverse proxy, ma questa pagina non è arrivata da un proxy attendibile in HTTPS. Aprila tramite il proxy o aggiungi l'indirizzo del proxy a CHRONOS_TRUSTED_PROXIES. Riavvio richiesto Porte, TLS, worker, dimensione blocchi o cronologia job salvati valgono dopo un riavvio + Giornaliera + Oraria Server Nome server Nome mostrato ai client e nella rete locale diff --git a/i18n/it/Settings.it.resx b/i18n/it/Settings.it.resx index 0b2df543..5b02008e 100644 --- a/i18n/it/Settings.it.resx +++ b/i18n/it/Settings.it.resx @@ -10,13 +10,26 @@ Cartella dati Dati dentro OneDrive Dati tenuti fuori da OneDrive + {0} giorno + {0} giorni Diagnostica Pacchetto diagnostico salvato + Log diagnostica Salva il pacchetto in Dati precedenti inutilizzati Esporta pacchetto + Dimensione file + Conserva log + Debug + Errore + Informazioni + Trace + Avviso + Livello log Log + Totale log Ancora nessuna copia + Nessun limite Modalità portatile Disattivata Attiva @@ -40,6 +53,9 @@ Ripristinare l'indice del {0}? Ora: illeggibile Indice ripristinato da una copia + Rotazione + Giornaliera + Oraria Dopo l'importazione Dopo una scansione Analisi profonda diff --git a/i18n/it/Tooltips.it.resx b/i18n/it/Tooltips.it.resx index 1a66bb85..94d72762 100644 --- a/i18n/it/Tooltips.it.resx +++ b/i18n/it/Tooltips.it.resx @@ -556,6 +556,7 @@ Anche le sequenze trovate da una scansione (cartelle adottate, nuovi sidecar) ricevono l'analisi profonda, in background Server a cui Chronos si connette all'avvio; cambiarlo chiude l'accesso · Invio applica, Esc annulla Comprime log, rapporto su sistema e codec, impostazioni e attività fallite di recente in una cartella a tua scelta; password, token e foto restano fuori + Quanta parte finale di ogni file di log include il pacchetto di diagnostica Apri i dati che questa copia portatile teneva accanto a sé prima di trovarsi in OneDrive. Chronos non li usa più e li lascia com'erano Salva tutte le impostazioni in JSON, senza il token di sessione Nome del file di ogni fotogramma, ad esempio {date}_{time}_{n:0000}; l'estensione viene aggiunta · Invio applica, Esc annulla @@ -567,9 +568,13 @@ Lascia le impostazioni dell'archivio come sono Lascia la cache com'è Lascia l'indice com'è + I file di log scritti l'ultima volta prima di questo periodo vengono eliminati Lascia ogni impostazione com'è Lingua dell'interfaccia · si applica subito + Un file di log che raggiunge questa dimensione prosegue in un nuovo file numerato + Livello minimo scritto nei file di log; Debug e Trace aiutano a trovare i problemi ma riempiono i file in fretta File di log giornalieri, conservati per 14 giorni + Quando i file di log insieme superano questa dimensione, i più vecchi vengono eliminati, mai quello in scrittura I fotogrammi restano in memoria fino a questo limite, poi passano nella cartella della cache Auto: un quarto della memoria installata Torna ad Auto: un quarto della memoria installata @@ -609,6 +614,7 @@ Tieni l'indice attuale al prossimo avvio Al prossimo avvio di Chronos, salva una copia dell'indice attuale e poi ripristina questa copia La copia scelta sostituisce l'indice al prossimo avvio di Chronos + Inizia un nuovo file di log ogni giorno o ogni ora (UTC) Trova un'impostazione per nome Codifica una breve clip sintetica con ogni encoder e ne riporta esito e velocità · circa un minuto Velocità sulla clip di prova sintetica 1280×720 diff --git a/src/Chronos.App/App.xaml.cs b/src/Chronos.App/App.xaml.cs index 40957607..228dca7f 100644 --- a/src/Chronos.App/App.xaml.cs +++ b/src/Chronos.App/App.xaml.cs @@ -77,6 +77,7 @@ public partial class App : Application } Settings = capture ? new AppSettings { Language = "en" } : AppSettings.Load(Environment.SettingsPath); + ApplyLogSettings(); UiLanguage.Apply(Settings.Language); ThemeManager.Initialize(this, capture ? AppTheme.Dark : Settings.Theme); AppResources.Merge(this); @@ -192,6 +193,14 @@ public partial class App : Application { Log.Warning("app", "Settings not saved", ex); } + // Every settings change passes here, Settings › Advanced › Logs, its Reset and an imported file included. + ApplyLogSettings(); + } + + /// Settings › Advanced › Logs to the log files, from the next line on (owner review 2, R11). + private void ApplyLogSettings() + { + if (_log is not null) AppLogging.Apply(_log, Settings); } protected override void OnExit(ExitEventArgs e) diff --git a/src/Chronos.App/Infrastructure/AppLogging.cs b/src/Chronos.App/Infrastructure/AppLogging.cs new file mode 100644 index 00000000..0185a875 --- /dev/null +++ b/src/Chronos.App/Infrastructure/AppLogging.cs @@ -0,0 +1,38 @@ +using Chronos.Core.Diagnostics; + +namespace Chronos.App.Infrastructure; + +/// +/// Settings › Advanced › Logs applied to this PC's log files (owner review 2, R11): the level, retention, size limits and +/// rotation of the App starts with, and the engine's (the files +/// are the only output outside screenshots). Values outside the ranges Settings offers are brought within them. +/// +public static class AppLogging +{ + public const int DefaultDiagnosticsLogMb = (int)(DiagnosticsArchive.DefaultLogTailBytes / LogFileOptions.BytesPerMb); + + public const int MaxRetentionDays = 3650; + public const int MaxFileMb = 10 * 1024; + public const int MaxTotalMb = 1024 * 1024; + public const int MaxDiagnosticsLogMb = 1024; + + public static LogFileOptions Options(AppSettings settings) => new() + { + Level = Enum.IsDefined(settings.LogLevel) ? settings.LogLevel : LogLevel.Info, + RetentionDays = int.Clamp(settings.LogRetentionDays, 1, MaxRetentionDays), + MaxFileMb = int.Clamp(settings.LogMaxFileMb, 0, MaxFileMb), + MaxTotalMb = int.Clamp(settings.LogMaxTotalMb, 0, MaxTotalMb), + Rotation = Enum.IsDefined(settings.LogRotation) ? settings.LogRotation : LogRotation.Daily, + }; + + /// Bytes the diagnostics bundle keeps from the end of each log file. + public static long DiagnosticsTailBytes(AppSettings settings) => int.Clamp(settings.DiagnosticsLogMb, 1, MaxDiagnosticsLogMb) * LogFileOptions.BytesPerMb; + + /// The settings to and the engine, from the next line on. + public static void Apply(FileLogSink sink, AppSettings settings) + { + var options = Options(settings); + sink.Configure(options); + Log.MinimumLevel = options.Level; + } +} diff --git a/src/Chronos.App/Infrastructure/AppSettings.cs b/src/Chronos.App/Infrastructure/AppSettings.cs index 07573205..3f331599 100644 --- a/src/Chronos.App/Infrastructure/AppSettings.cs +++ b/src/Chronos.App/Infrastructure/AppSettings.cs @@ -3,6 +3,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using Chronos.Core.Analysis.Deep; using Chronos.Core.Archiving; +using Chronos.Core.Diagnostics; using Chronos.Core.Import; using Chronos.Core.IO; using Chronos.Core.Naming; @@ -185,6 +186,25 @@ public sealed class AppSettings /// "Clear done": finished jobs older than this are hidden from the Jobs list (they stay in the history). public DateTimeOffset? JobsClearedAt { get; set; } + // ---- Advanced › Logs (owner review 2, R11; applied by AppLogging) ---- + /// Least severe level written to the log files. + public LogLevel LogLevel { get; set; } = LogLevel.Info; + + /// Log files last written longer ago are deleted. + public int LogRetentionDays { get; set; } = LogFileOptions.DefaultRetentionDays; + + /// A log file this large (MB of 2²⁰ bytes) continues in a numbered one; 0 = no limit. + public int LogMaxFileMb { get; set; } = LogFileOptions.DefaultMaxFileMb; + + /// While the log files together are larger (MB), the oldest are deleted, never the current one; 0 = no limit. + public int LogMaxTotalMb { get; set; } = LogFileOptions.DefaultMaxTotalMb; + + /// One log file per UTC day or per hour. + public LogRotation LogRotation { get; set; } = LogRotation.Daily; + + /// MB kept from the end of each log file in the diagnostics bundle. + public int DiagnosticsLogMb { get; set; } = AppLogging.DefaultDiagnosticsLogMb; + public sealed class WindowPlacement { public double Left { get; set; } diff --git a/src/Chronos.App/Infrastructure/DiagnosticsBundle.cs b/src/Chronos.App/Infrastructure/DiagnosticsBundle.cs index aa6c3f5a..417ed95b 100644 --- a/src/Chronos.App/Infrastructure/DiagnosticsBundle.cs +++ b/src/Chronos.App/Infrastructure/DiagnosticsBundle.cs @@ -14,7 +14,8 @@ namespace Chronos.App.Infrastructure; /// /// The diagnostics bundle of Settings › Advanced (BRIEF §12.8, §12.9, §22 Phase 8): an environment report, the codec -/// and encoder inventory, the settings, the latest failed jobs and the log files, zipped into a folder the user chose. +/// and encoder inventory, the settings, the latest failed jobs and the end of each log file (Settings › Advanced › +/// Diagnostics logs), zipped into a folder the user chose. /// Everything passes through (the saved server token, passwords and keys never leave the /// PC) and no photo or archive file is ever included. /// @@ -31,6 +32,7 @@ public static class DiagnosticsBundle public static Task CreateAsync(AppServices services, string folder, IEnumerable? extraLines = null, CancellationToken ct = default) { var settings = services.Settings.ToJson(); + var tailBytes = AppLogging.DiagnosticsTailBytes(services.Settings); var report = Report(services.Environment, extraLines) + DatabaseLine(services.Database); return Task.Run(async () => { @@ -47,7 +49,7 @@ public static class DiagnosticsBundle bundle.AddText("codecs.txt", codecs); bundle.AddJson("settings.json", settings); bundle.AddJobs("jobs-failed.json", failures); - bundle.AddLogs(services.Environment.LogDirectory, cancellationToken: ct); + bundle.AddLogs(services.Environment.LogDirectory, tailBytes: tailBytes, cancellationToken: ct); } File.Move(temp, path); return path; diff --git a/src/Chronos.App/Sections/SettingsView.xaml b/src/Chronos.App/Sections/SettingsView.xaml index 7217587c..558bf666 100644 --- a/src/Chronos.App/Sections/SettingsView.xaml +++ b/src/Chronos.App/Sections/SettingsView.xaml @@ -617,6 +617,31 @@