Added SMBServer.OnLogEntry event

Implementers can now subscribe to the OnLogEntry event and receive log
entries.
This commit is contained in:
Tal Aloni 2017-01-10 15:30:18 +02:00
parent 08717b5358
commit 74e92f2e2b
14 changed files with 147 additions and 44 deletions

View file

@ -232,7 +232,7 @@ namespace SMBLibrary.Server
Stream stream = m_openedFiles[fileID].Stream;
if (stream != null)
{
System.Diagnostics.Debug.Print("[{0}] Closing file '{1}'", DateTime.Now.ToString("HH:mm:ss:ffff"), m_openedFiles[fileID].Path);
LogToServer(Severity.Verbose, "Closing file '{0}'", m_openedFiles[fileID].Path);
stream.Close();
}
m_openedFiles.Remove(fileID);