Rename Logger.Debug to Logger.LogDebug across codebase

Renamed the Logger.Debug method to Logger.LogDebug for improved clarity and consistency. Updated all usages in PDFBurner, ReportCreator, FinalizeDocumentJob, TempFiles, and Logging.cs. No changes to logging logic or other log levels.
This commit is contained in:
2026-02-25 13:36:50 +01:00
parent 3b06f3fdac
commit cbc983e070
5 changed files with 43 additions and 41 deletions

View File

@@ -23,7 +23,7 @@ public class ReportCreator : BaseClass
{
try
{
Logger.Debug("Loading report data..");
Logger.LogDebug("Loading report data..");
var table = _reportModel.List(envelope.Id);
var items = GetReportSource(table);
@@ -34,9 +34,9 @@ public class ReportCreator : BaseClass
throw new CreateReportException("No report data found!");
}
Logger.Debug("Creating report with [{0}] items..", items.Count);
Logger.LogDebug("Creating report with [{0}] items..", items.Count);
var buffer = DoCreateReport(items);
Logger.Debug("Report created!");
Logger.LogDebug("Report created!");
return buffer;
}
@@ -49,7 +49,7 @@ public class ReportCreator : BaseClass
private List<ReportItem> GetReportSource(DataTable dataTable)
{
Logger.Debug("Preparing report data");
Logger.LogDebug("Preparing report data");
return dataTable.Rows
.Cast<DataRow>()
.Select(ToReportItem)
@@ -63,14 +63,14 @@ public class ReportCreator : BaseClass
var source = new ReportSource { Items = items };
var report = new rptEnvelopeHistory { DataSource = source, DataMember = "Items" };
Logger.Debug("Creating report in memory..");
Logger.LogDebug("Creating report in memory..");
report.CreateDocument();
Logger.Debug("Exporting report to stream..");
Logger.LogDebug("Exporting report to stream..");
using var stream = new MemoryStream();
report.ExportToPdf(stream);
Logger.Debug("Writing report to buffer..");
Logger.LogDebug("Writing report to buffer..");
return stream.ToArray();
}