Revize f9dd116f
Přidáno uživatelem Alex Konig před více než 3 roky(ů)
Server/ServerApp/Parser/Parsers/JisParser.cs | ||
---|---|---|
5 | 5 |
using System; |
6 | 6 |
using System.Collections.Generic; |
7 | 7 |
using System.IO; |
8 |
using log4net; |
|
8 | 9 |
using ServerApp.Parser.InputData; |
9 | 10 |
using ServerApp.Parser.OutputInfo; |
10 | 11 |
|
... | ... | |
17 | 18 |
/// <author>A. Konig</author> |
18 | 19 |
public class JisParser |
19 | 20 |
{ |
21 |
/// <summary> Logger </summary> |
|
22 |
private static readonly ILog _log = LogManager.GetLogger(typeof(JisParser)); |
|
20 | 23 |
|
21 | 24 |
/// <summary> Datafile loader </summary> |
22 | 25 |
IDataLoader loader; |
... | ... | |
71 | 74 |
} |
72 | 75 |
catch |
73 | 76 |
{ |
74 |
Console.WriteLine("Incorrect jis input file " + current);
|
|
77 |
_log.Error("Incorrect jis input file " + current);
|
|
75 | 78 |
} |
76 | 79 |
|
77 | 80 |
return list; |
... | ... | |
141 | 144 |
} |
142 | 145 |
else |
143 | 146 |
{ |
144 |
// TODO uknown code handling -> to file? |
|
145 |
// Console.WriteLine("Unknown code " + list[i].placeTag); |
|
147 |
_log.Warn("Unknown code " + list[i].placeTag); |
|
146 | 148 |
} |
147 | 149 |
|
148 | 150 |
} |
... | ... | |
217 | 219 |
// start time of last interval |
218 | 220 |
DateTime stTime = new DateTime(lastStartTime.Year, lastStartTime.Month, lastStartTime.Day, startingTime, 0, 0); |
219 | 221 |
|
220 |
// TODO zjistit kolik se vynechalo a přidat tolik nul? |
|
221 |
|
|
222 | 222 |
// find end and start time |
223 | 223 |
if (!trigger) |
224 | 224 |
index++; |
... | ... | |
260 | 260 |
} |
261 | 261 |
else |
262 | 262 |
{ |
263 |
// TODO uknown code handling -> to file? |
|
264 |
// Console.WriteLine("Unknown code " + list[i].placeTag); |
|
263 |
_log.Warn("Unknown code " + list[i].placeTag); |
|
265 | 264 |
} |
266 | 265 |
|
267 | 266 |
} |
Také k dispozici: Unified diff
re #9036 Editing logging