NLog - Flexible and Structured Logging for various .NET Platforms
This report presents the forensic synthetic code analysis of NLog/NLog, a C# project with 6,544 GitHub stars. SynthScan v2.0 examined 157,282 lines of code across 732 source files, recording 1992 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 13.8 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 1992 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …de/src/NLog.SourceCodeTests/Properties/AssemblyInfo.cs | 21 | // The following GUID is for the ID of the typelib if this project is exposed to COM | COMMENT |
| LOW | tools/MakeNLogXSD/XsdFileGenerator.cs | 1 | // | COMMENT |
| LOW | tools/MakeNLogXSD/XsdFileGenerator.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tools/MakeNLogXSD/Program.cs | 1 | // | COMMENT |
| LOW | tools/MakeNLogXSD/Program.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/NLog.Benchmarks/Program.cs | 1 | // | COMMENT |
| LOW | tests/NLog.Benchmarks/Program.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | …og.Benchmarks/Targets/ColoredConsoleTargetBenchmark.cs | 1 | // | COMMENT |
| LOW | …og.Benchmarks/Targets/ColoredConsoleTargetBenchmark.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/SampleExtensions/WhenFooFilter.cs | 1 | // | COMMENT |
| LOW | tests/SampleExtensions/WhenFooFilter.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/SampleExtensions/FooLayout.cs | 1 | // | COMMENT |
| LOW | tests/SampleExtensions/FooLayout.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/SampleExtensions/MyConditionMethods.cs | 1 | // | COMMENT |
| LOW | tests/SampleExtensions/MyConditionMethods.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/SampleExtensions/MyTarget.cs | 1 | // | COMMENT |
| LOW | tests/SampleExtensions/MyTarget.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/SampleExtensions/FooLayoutRenderer.cs | 1 | // | COMMENT |
| LOW | tests/SampleExtensions/FooLayoutRenderer.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/NLog.RegEx.Tests/RegexReplaceTests.cs | 1 | // | COMMENT |
| LOW | tests/NLog.RegEx.Tests/RegexReplaceTests.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/NLog.RegEx.Tests/ConditionEvaluatorTests.cs | 1 | // | COMMENT |
| LOW | tests/NLog.RegEx.Tests/ConditionEvaluatorTests.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/NLog.RegEx.Tests/ColoredConsoleTargetTests.cs | 1 | // | COMMENT |
| LOW | tests/NLog.RegEx.Tests/ColoredConsoleTargetTests.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | …s/NLog.Targets.AtomicFile.Tests/AtomicProcessRunner.cs | 1 | // | COMMENT |
| LOW | …s/NLog.Targets.AtomicFile.Tests/AtomicProcessRunner.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/NLog.Targets.AtomicFile.Tests/AtomicFileTests.cs | 1 | // | COMMENT |
| LOW | tests/NLog.Targets.AtomicFile.Tests/AtomicFileTests.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | …gets.AtomicFile.Tests/AtomicWritesMultiProcessTests.cs | 1 | // | COMMENT |
| LOW | …gets.AtomicFile.Tests/AtomicWritesMultiProcessTests.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | …og.Targets.AtomicFile.Tests/Properties/AssemblyInfo.cs | 1 | // | COMMENT |
| LOW | …og.Targets.AtomicFile.Tests/Properties/AssemblyInfo.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/NLogAutoLoadExtension/AutoLoadTarget.cs | 1 | // | COMMENT |
| LOW | tests/NLogAutoLoadExtension/AutoLoadTarget.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/NLogAutoLoadExtension/Properties/AssemblyInfo.cs | 1 | using System.Reflection; | COMMENT |
| LOW | tests/NLog.Targets.GZipFile.Tests/GZipFileTests.cs | 1 | // | COMMENT |
| LOW | tests/NLog.Targets.GZipFile.Tests/GZipFileTests.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/NLog.UnitTests/LogMessageFormatterTests.cs | 1 | // | COMMENT |
| LOW | tests/NLog.UnitTests/LogMessageFormatterTests.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/NLog.UnitTests/LogManagerTests.cs | 1 | // | COMMENT |
| LOW | tests/NLog.UnitTests/LogManagerTests.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/NLog.UnitTests/NLogTestBase.cs | 1 | // | COMMENT |
| LOW | tests/NLog.UnitTests/NLogTestBase.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/NLog.UnitTests/LogLevelTests.cs | 1 | // | COMMENT |
| LOW | tests/NLog.UnitTests/LogLevelTests.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/NLog.UnitTests/RegressionTests.cs | 1 | // | COMMENT |
| LOW | tests/NLog.UnitTests/RegressionTests.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/NLog.UnitTests/ConfigFileLocatorTests.cs | 1 | // | COMMENT |
| LOW | tests/NLog.UnitTests/ConfigFileLocatorTests.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/NLog.UnitTests/LoggerTests.cs | 1 | // | COMMENT |
| LOW | tests/NLog.UnitTests/LoggerTests.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| LOW | tests/NLog.UnitTests/LoggerTests.cs | 2421 | COMMENT | |
| LOW | tests/NLog.UnitTests/LoggerTests.cs | 2441 | COMMENT | |
| LOW | tests/NLog.UnitTests/LoggerTests.cs | 2461 | // if (enabled == 1) AssertDebugLastMessage("debug", "A|message1"); | COMMENT |
| LOW | tests/NLog.UnitTests/LoggerTests.cs | 2481 | // logger.Error(CultureInfo.InvariantCulture, "message{0}", this); | COMMENT |
| LOW | tests/NLog.UnitTests/LoggerTests.cs | 2501 | COMMENT | |
| LOW | tests/NLog.UnitTests/LoggerTests.cs | 2521 | // if (enabled == 1) AssertDebugLastMessage("debug", "A|messageeee2fffggg"); | COMMENT |
| LOW | tests/NLog.UnitTests/GetLoggerTests.cs | 1 | // | COMMENT |
| LOW | tests/NLog.UnitTests/GetLoggerTests.cs | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | COMMENT |
| 1904 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | tests/NLog.UnitTests/Targets/FileTargetTests.cs | 4516 | logger.Log(new LogEventInfo(LogLevel.Info, null, "789") { TimeStamp = NLog.Time.TimeSource.Current.Time. | CODE |
| CRITICAL⚡ | tests/NLog.UnitTests/Targets/FileTargetTests.cs | 4517 | logger.Log(new LogEventInfo(LogLevel.Info, null, "123") { TimeStamp = NLog.Time.TimeSource.Current.Time. | CODE |
| CRITICAL⚡ | tests/NLog.UnitTests/Targets/FileTargetTests.cs | 4519 | logger.Log(new LogEventInfo(LogLevel.Info, null, "123") { TimeStamp = NLog.Time.TimeSource.Current.Time. | CODE |
| CRITICAL | …s/NLog.UnitTests/Conditions/ConditionEvaluatorTests.cs | 322 | var bf = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter(); | CODE |
| CRITICAL | …s/NLog.UnitTests/Conditions/ConditionEvaluatorTests.cs | 362 | var bf = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter(); | CODE |
| CRITICAL | tests/NLog.UnitTests/LayoutRenderers/ExceptionTests.cs | 469 | var task1 = System.Threading.Tasks.Task.Factory.StartNew(() => { throw new Exception("Test exception 1", new | CODE |
| CRITICAL | tests/NLog.UnitTests/LayoutRenderers/ExceptionTests.cs | 471 | var task2 = System.Threading.Tasks.Task.Factory.StartNew(() => { throw new Exception("Test exception 2", new | CODE |
| CRITICAL | tests/NLog.UnitTests/LayoutRenderers/ExceptionTests.cs | 517 | var task1 = System.Threading.Tasks.Task.Factory.StartNew(() => | CODE |
| CRITICAL | tests/NLog.UnitTests/LayoutRenderers/ExceptionTests.cs | 527 | var task2 = System.Threading.Tasks.Task.Factory.StartNew(() => | CODE |
| CRITICAL | tests/NLog.UnitTests/LayoutRenderers/ExceptionTests.cs | 582 | var task1 = System.Threading.Tasks.Task.Factory.StartNew(() => { throw new Exception("Test exception 1", new | CODE |
| CRITICAL | tests/NLog.UnitTests/LayoutRenderers/ExceptionTests.cs | 624 | var task1 = System.Threading.Tasks.Task.Factory.StartNew(() => | CODE |
| CRITICAL | …NLog.UnitTests/LayoutRenderers/Wrappers/CachedTests.cs | 126 | var s3 = l.Render(new LogEventInfo() { TimeStamp = NLog.Time.TimeSource.Current.Time.AddMinutes(2) }); | CODE |
| CRITICAL⚡ | src/NLog/ScopeContext.cs | 823 | System.Runtime.Remoting.Messaging.CallContext.FreeNamedDataSlot(MappedContextDataSlotName); | CODE |
| CRITICAL⚡ | src/NLog/ScopeContext.cs | 825 | System.Runtime.Remoting.Messaging.CallContext.LogicalSetData(MappedContextDataSlotName, newValue); | CODE |
| CRITICAL⚡ | src/NLog/ScopeContext.cs | 830 | return System.Runtime.Remoting.Messaging.CallContext.LogicalGetData(MappedContextDataSlotName) as Dictionary | CODE |
| CRITICAL⚡ | src/NLog/ScopeContext.cs | 882 | System.Runtime.Remoting.Messaging.CallContext.FreeNamedDataSlot(NestedContextDataSlotName); | CODE |
| CRITICAL⚡ | src/NLog/ScopeContext.cs | 884 | System.Runtime.Remoting.Messaging.CallContext.LogicalSetData(NestedContextDataSlotName, nestedContext); | CODE |
| CRITICAL⚡ | src/NLog/ScopeContext.cs | 891 | return System.Runtime.Remoting.Messaging.CallContext.LogicalGetData(NestedContextDataSlotName) as LinkedList | CODE |
| CRITICAL | …og/Targets/FileAppenders/MinimalFileLockingAppender.cs | 83 | if (_nextArchiveTime < NLog.Time.TimeSource.Current.Time.AddMinutes(1) || _lastFileBirthTimeUtc == DateT | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …API/ASPNetBufferingWrapper/NormalPage.aspx.designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | …PNetBufferingWrapper/PageWithWarnings.aspx.designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/NLog.UnitTests/Targets/AsyncTaskTargetTest.cs | 655 | // Step 1: Write event that will fail when timer fires for background-writer. | COMMENT |
| LOW⚡ | tests/NLog.UnitTests/Targets/AsyncTaskTargetTest.cs | 658 | // Step 2: Flush that triggers timer immediately, and because BatchSize=1 then it first writes the failing L | COMMENT |
| LOW⚡ | tests/NLog.UnitTests/Targets/AsyncTaskTargetTest.cs | 661 | // Step 3: Write next event. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/NLog.UnitTests/Targets/AsyncTaskTargetTest.cs | 655 | // Step 1: Write event that will fail when timer fires for background-writer. | COMMENT |
| LOW⚡ | tests/NLog.UnitTests/Targets/AsyncTaskTargetTest.cs | 658 | // Step 2: Flush that triggers timer immediately, and because BatchSize=1 then it first writes the failing L | COMMENT |
| LOW⚡ | tests/NLog.UnitTests/Targets/AsyncTaskTargetTest.cs | 661 | // Step 3: Write next event. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/NLog.UnitTests/LoggerTests.cs | 2230 | logger.Debug("Process order {" + param1 + "} for {" + param2 + "}", 13424, new { ClientId = 3001, Client | CODE |