[longomatch] Fix logging with format.



commit 963b709cc4b6bb22a62ab6c616a751ec83332c57
Author: Julien Moutte <julien fluendo com>
Date:   Mon Apr 13 12:05:12 2015 +0200

    Fix logging with format.

 LongoMatch.Services/CoreServices.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/LongoMatch.Services/CoreServices.cs b/LongoMatch.Services/CoreServices.cs
index e0f47c7..6dfec9e 100644
--- a/LongoMatch.Services/CoreServices.cs
+++ b/LongoMatch.Services/CoreServices.cs
@@ -133,9 +133,9 @@ namespace LongoMatch.Services
                {
                        foreach (IService service in services.OrderBy (s => s.Level)) {
                                if (service.Start ()) {
-                                       Log.Information ("Started service {0} successfully");
+                                       Log.InformationFormat ("Started service {0} successfully", 
service.Name);
                                } else {
-                                       Log.Information ("Failed starting service {0}");
+                                       Log.InformationFormat ("Failed starting service {0}", service.Name);
                                }
                        }
                }
@@ -144,9 +144,9 @@ namespace LongoMatch.Services
                {
                        foreach (IService service in services.OrderByDescending (s => s.Level)) {
                                if (service.Stop ()) {
-                                       Log.Information ("Stopped service {0} successfully");
+                                       Log.InformationFormat ("Stopped service {0} successfully", 
service.Name);
                                } else {
-                                       Log.Information ("Failed stopping service {0}");
+                                       Log.InformationFormat ("Failed stopping service {0}", service.Name);
                                }
                        }
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]