Log services: Difference between revisions
No edit summary |
mNo edit summary |
||
Line 196: | Line 196: | ||
LogManager uses two separate threads: a flushing thread and a htcs thread (main thread is handling both IPC and PM module requests): | LogManager uses two separate threads: a flushing thread and a htcs thread (main thread is handling both IPC and PM module requests): | ||
* The flushing calls Flush() on the "LogBuffer" object, which is the object responsible for flushing logged data though the other objects, and sends a LogPacketDropCount packet via the | * The flushing calls Flush() on the "LogBuffer" object, which is the object responsible for flushing logged data though the other objects, and sends a LogPacketDropCount packet via the EventLogTransmitter object (see below) if there any dropped packets and the flushing succeeds - this is done in a loop, waiting until the process starts finalization. | ||
* The htcs thread continously reads from the server connection, and will close and reopen the client socket if the connection happened to be lost - this is done in a loop, waiting until the process starts finalization. | * The htcs thread continously reads from the server connection, and will close and reopen the client socket if the connection happened to be lost - this is done in a loop, waiting until the process starts finalization. |