mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-02-24 00:37:08 +00:00
LogManager: added Write method with string protocol arg.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user