Projekt

Obecné

Profil

« Předchozí | Další » 

Revize f9dd116f

Přidáno uživatelem Alex Konig před více než 3 roky(ů)

re #9036 Editing logging

Zobrazit rozdíly:

Server/ServerApp/Parser/Parsers/LogInParser.cs
2 2
// Author: A. Konig
3 3
//
4 4

  
5
using log4net;
5 6
using ServerApp.Parser.InputData;
6 7
using ServerApp.Parser.OutputInfo;
7 8
using System;
......
17 18
    /// <author>A. Konig</author>
18 19
    public class LogInParser
19 20
    {
21
        /// <summary> Logger </summary>
22
        private static readonly ILog _log = LogManager.GetLogger(typeof(LogInParser));
23

  
20 24
        /// <summary> Datafile loader  </summary>
21 25
        IDataLoader loader;
22 26

  
......
69 73
                }
70 74
            } catch
71 75
            {
72
                Console.WriteLine("Incorrect Login input file " + current);
76
                _log.Error("Incorrect Login input file " + current);
73 77
            }
74 78

  
75 79
            return list;
......
131 135
                if (TagInfo.buildingTags.ContainsKey(place))
132 136
                {
133 137
                    int index = TagInfo.buildingTags[place];
134
                    //Console.WriteLine(place + " " + index);
135 138

  
136 139
                    // to all
137 140
                    if (index == -1)
......
143 146
                }
144 147
                else
145 148
                {
146
                    // TODO uknown code handling -> to file?
147
                    // Console.WriteLine("Unknown code " + list[i].building);
149
                    _log.Warn("Unknown code " + list[i].building);
148 150
                }
149 151

  
150 152
            }
......
262 264
                }
263 265
                else
264 266
                {
265
                    // TODO uknown code handling -> write to file?
266
                    // Console.WriteLine("Unknown code " + list[i].building);
267
                    _log.Warn("Unknown code " + list[i].building);
267 268
                }
268 269

  
269 270
            }

Také k dispozici: Unified diff