Class MessageHandlerXML


  • public class MessageHandlerXML
    extends LogMessageHandler
    Class MessageHandlerXML formats messages to a XML file. Class MessageHandlerXML will eventually support multiple targets(files) and be able to select targets(files) depending on the severity of a message.
    • Constructor Detail

      • MessageHandlerXML

        public MessageHandlerXML​(java.io.OutputStream oSource)
        Constructor. Will write out to oSource but does not close the stream file. Note: OutputStream could be any platform-specific implementation.
        Parameters:
        oSource - - stream file
    • Method Detail

      • flush

        public void flush()
        Flushes any buffered messages to be written out to this object's output stream.
        Specified by:
        flush in class LogMessageHandler
      • sendMessage

        public void sendMessage​(LogMessage oMessage)
        Send message to target using XML file format.
        Specified by:
        sendMessage in class LogMessageHandler
        Parameters:
        oMessage - - the message