|
29 | 29 | import twg2.io.files.FileFormatException;
|
30 | 30 | import twg2.io.files.FileReadUtil;
|
31 | 31 | import twg2.io.json.stringify.JsonStringify;
|
32 |
| -import twg2.logging.Logging; |
33 |
| -import twg2.logging.LoggingImpl; |
34 |
| -import twg2.logging.LoggingPrefixFormat; |
| 32 | +import twg2.logging.LogPrefixFormat; |
| 33 | +import twg2.logging.LogService; |
| 34 | +import twg2.logging.LogServiceImpl; |
35 | 35 | import twg2.parser.codeParser.BlockType;
|
36 | 36 | import twg2.parser.codeParser.analytics.PerformanceTrackers;
|
37 | 37 | import twg2.parser.codeParser.csharp.CsBlock;
|
@@ -63,7 +63,7 @@ public ParserWorkflow(List<DirectorySearchInfo> sources, List<DestinationInfo> d
|
63 | 63 |
|
64 | 64 | public void run(Level logLevel, ExecutorService executor, FileReadUtil fileReader, PerformanceTrackers perfTracking) throws IOException, FileFormatException {
|
65 | 65 | HashSet<List<String>> missingNamespaces = new HashSet<>();
|
66 |
| - Logging log = this.logFile != null ? new LoggingImpl(logLevel, new PrintStream(this.logFile.toFile()), LoggingPrefixFormat.DATETIME_LEVEL_AND_CLASS) : null; |
| 66 | + LogServiceImpl log = this.logFile != null ? new LogServiceImpl(logLevel, new PrintStream(this.logFile.toFile()), LogPrefixFormat.DATETIME_LEVEL_AND_CLASS) : null; |
67 | 67 |
|
68 | 68 | val loadRes = SourceFiles.load(this.sources);
|
69 | 69 | if(log != null) {
|
@@ -146,8 +146,8 @@ public ParsedResult(ProjectClassSet.Intermediate<? extends BlockType> compilatio
|
146 | 146 | }
|
147 | 147 |
|
148 | 148 |
|
149 |
| - public void log(Logging log, Level level, boolean includeHeader) { |
150 |
| - if(Logging.wouldLog(log, level)) { |
| 149 | + public void log(LogService log, Level level, boolean includeHeader) { |
| 150 | + if(LogService.wouldLog(log, level)) { |
151 | 151 | val files = compilationUnits.getCompilationUnitsStartWith(Arrays.asList(""));
|
152 | 152 | val fileSets = new HashMap<CodeFileSrc, List<ClassAst.SimpleImpl<BlockType>>>();
|
153 | 153 | for(val file : files) {
|
@@ -206,8 +206,8 @@ public ResolvedResult(ProjectClassSet.Resolved<? extends BlockType> compilationU
|
206 | 206 | }
|
207 | 207 |
|
208 | 208 |
|
209 |
| - public void log(Logging log, Level level, boolean includeHeader) { |
210 |
| - if(Logging.wouldLog(log, level)) { |
| 209 | + public void log(LogService log, Level level, boolean includeHeader) { |
| 210 | + if(LogService.wouldLog(log, level)) { |
211 | 211 | val files = compilationUnits.getCompilationUnitsStartWith(Arrays.asList(""));
|
212 | 212 | val fileSets = new HashMap<CodeFileSrc, List<ClassAst.ResolvedImpl<BlockType>>>();
|
213 | 213 | for(val file : files) {
|
@@ -267,8 +267,8 @@ public FilterResult(Map<? extends DestinationInfo, ? extends List<? extends Code
|
267 | 267 | }
|
268 | 268 |
|
269 | 269 |
|
270 |
| - public void log(Logging log, Level level, boolean includeHeader) { |
271 |
| - if(Logging.wouldLog(log, level)) { |
| 270 | + public void log(LogService log, Level level, boolean includeHeader) { |
| 271 | + if(LogService.wouldLog(log, level)) { |
272 | 272 | val sb = new StringBuilder();
|
273 | 273 | if(includeHeader) {
|
274 | 274 | sb.append(newline);
|
|
0 commit comments