mirror of https://github.com/icedream/npsharp.git
More log4nettification
parent
e6aa297039
commit
5638c27850
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue