mirror of https://github.com/icedream/npsharp.git
More log4nettification
parent
e6aa297039
commit
5638c27850
|
@ -19,7 +19,7 @@ namespace NPSharp.RPC.Messages
|
|||
#if DEBUG
|
||||
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
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ namespace NPSharp.CommandLine.MOTD
|
|||
|
||||
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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue