More log4nettification

feature-npv2
Icedream 2014-05-08 10:36:37 +02:00
parent e6aa297039
commit 5638c27850
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ namespace NPSharp.RPC.Messages
#if DEBUG #if DEBUG
foreach (var prop in GetType().GetProperties()) foreach (var prop in GetType().GetProperties())
{ {
Console.WriteLine("\t{0} = {1}", prop.Name, prop.GetValue(this)); _log.DebugFormat("\tMessage property: {0} = {1}", prop.Name, prop.GetValue(this));
} }
#endif #endif

View File

@ -87,7 +87,7 @@ namespace NPSharp.CommandLine.MOTD
try try
{ {
Console.WriteLine(Encoding.UTF8.GetString(np.GetPublisherFile("motd-english.txt").Result)); log.InfoFormat("Server says: {0}", Encoding.UTF8.GetString(np.GetPublisherFile("motd-english.txt").Result));
} }
catch catch
{ {