LogManager: added Write method with string protocol arg.

This commit is contained in:
Shreyas Zare
2020-09-05 20:00:22 +05:30
parent b4d70e079e
commit b235b5ca2e

View File

@@ -293,6 +293,11 @@ namespace DnsServerCore
}
public void Write(IPEndPoint ep, DnsTransportProtocol protocol, string message)
{
Write(ep, protocol.ToString(), message);
}
public void Write(IPEndPoint ep, string protocol, string message)
{
string ipInfo;
@@ -303,7 +308,7 @@ namespace DnsServerCore
else
ipInfo = "[" + ep.ToString() + "] ";
Write(ipInfo + "[" + protocol.ToString().ToUpper() + "] " + message);
Write(ipInfo + "[" + protocol.ToUpper() + "] " + message);
}
public void Write(string message)