January 2011 Entries

  • Serial Port log4net Appender

    As we needed a way to send our logs from a Windows CE device in near real time to an off-machine logging window, we decided that logging to a serial port would be the simplest option (our device has 8 serial ports!). The software already uses log4net for logging, and the best way was to use an appender that outputs to a serial port.  Since I couldn’t find an appender that writes to a COM port, I had to write my own.  It was very easy, since log4net provides most of the functionality in an object called an...