ClientLogSender
A class in Root.Township, the global namespace.
Streams the server's console log to a remote console client over TCP. One is made per ClientHandler connection. Server.
- Listed in Global namespace: C to D
- Documented in Remote console
Constructors
| Member | What it is |
|---|---|
ClientLogSender() | Creates a ClientLogSender with default values. |
Fields
6 private and internal fields
Methods
| Member | What it is |
|---|---|
void Close() | Stops the send thread, unhooks from the console log target and closes the socket. |
4 private and internal methods
| Member | What it is |
|---|---|
private void HandleConsoleLog(LogEventInfo logEvent) | Queues a log event from ServerConsoleLogTarget.LogSentRaw and wakes the send thread. |
private void ProcessLogs() | Background thread loop that waits for queued log events and sends them all. |
private void SendLogToClient(LogEventInfo log) | Serializes one log event and sends it on the accepted socket. Errors are ignored. |
private void StartSendingLogs(IAsyncResult result) | Accept callback: keeps the accepted socket and closes the listener. |
Used in
Members of other types that take, return or hold a ClientLogSender: