ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/trunk/libxmltv/Core/XMLTVLoader.cs
(Generate patch)

Comparing trunk/libxmltv/Core/XMLTVLoader.cs (file contents):
Revision 54 by william, Fri Mar 8 05:20:12 2013 UTC vs.
Revision 55 by william, Fri Mar 8 10:19:32 2013 UTC

# Line 20 | Line 20 | namespace libxmltv.Core
20          private XMLTVRuntimeInstance instance;
21          protected XMLTVLoader(string xml_file, XMLTVRuntimeInstance xmltv)
22          {
23 <            xmltv_logger.Log.Verbose.Debug.WriteLine("Creating Instance of XMLTVLoader");
23 >            xmltv_logger.Verbose.Debug.WriteLine("Creating Instance of XMLTVLoader");
24              //string _xmltv;
25              //if (!Internals.VerifyInstance<string>(xmltv, out _xmltv)) { return; }
26              //xmlfile = _xmltv;
# Line 36 | Line 36 | namespace libxmltv.Core
36  
37          private void LoadXml()
38          {
39 <            xmltv_logger.Log.Info.WriteLine("Loading XMLTV File: {0}", instance.XmlFile.Name);
40 <            //xmltv_logger.Log.Warn.WriteLine("XML File Loading has not been implemented yet!");
39 >            xmltv_logger.Info.WriteLine("Loading XMLTV File: {0}", instance.XmlFile.Name);
40 >            //xmltv_logger.Warn.WriteLine("XML File Loading has not been implemented yet!");
41              try
42              {
43                  var document = XDocument.Load(instance.XmlFile.FullName);
# Line 54 | Line 54 | namespace libxmltv.Core
54              }
55              catch (Exception ex)
56              {
57 <                xmltv_logger.Log.Error.WriteLine("Failed to load XMLTV File: {0}", instance.XmlFile.Name);
58 <                xmltv_logger.Log.Error.WriteLine(ex.GetBaseException().ToString());
57 >                xmltv_logger.Error.WriteLine("Failed to load XMLTV File: {0}", instance.XmlFile.Name);
58 >                xmltv_logger.Error.WriteLine(ex.GetBaseException().ToString());
59              }
60          }
61  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines