File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 6
6
<Company >Dean Edis (DeanTheCoder)</Company >
7
7
</PropertyGroup >
8
8
9
+ <ItemGroup >
10
+ <ProjectReference Include =" ..\DTC.Core\CSharp.Core\CSharp.Core.csproj" />
11
+ </ItemGroup >
12
+
9
13
</Project >
Original file line number Diff line number Diff line change 13
13
using System . IO ;
14
14
using System . Linq ;
15
15
using System . Text ;
16
+ using CSharp . Core ;
16
17
17
18
namespace CodeIngestLib ;
18
19
@@ -44,7 +45,7 @@ public Ingester(IngestOptions options)
44
45
catch ( Exception ex )
45
46
{
46
47
didError = true ;
47
- Console . WriteLine ( $ "Warning: Failed to read directory { d . FullName } : { ex . Message } ") ;
48
+ Logger . Instance . Error ( $ "Failed to read directory { d . FullName } : { ex . Message } ") ;
48
49
return [ ] ;
49
50
}
50
51
} ) )
@@ -53,13 +54,13 @@ public Ingester(IngestOptions options)
53
54
54
55
if ( didError )
55
56
{
56
- Console . WriteLine ( "Error collecting files." ) ;
57
+ Logger . Instance . Error ( "Error collecting files." ) ;
57
58
return null ;
58
59
}
59
60
60
61
if ( sourceFiles . Count == 0 )
61
62
{
62
- Console . WriteLine ( "No matching files found. Check your filters or directory paths." ) ;
63
+ Logger . Instance . Warn ( "No matching files found. Check your filters or directory paths." ) ;
63
64
return ( 0 , 0 ) ;
64
65
}
65
66
@@ -87,7 +88,7 @@ public Ingester(IngestOptions options)
87
88
}
88
89
89
90
if ( m_options . Verbose )
90
- Console . WriteLine ( $ "{ kvp . Key } ({ lines . Sum ( o => o . Length ) : N0} characters -> { lines . Count : N0} lines)") ;
91
+ Logger . Instance . Warn ( $ "{ kvp . Key } ({ lines . Sum ( o => o . Length ) : N0} characters -> { lines . Count : N0} lines)") ;
91
92
}
92
93
}
93
94
You can’t perform that action at this time.
0 commit comments