Interface IStructuredLogMessage

All Superinterfaces:
IXMLRepresentable

public interface IStructuredLogMessage extends IXMLRepresentable
Structured log message for ILogger.

Tags are values representing for example message category, source etc.

XML representation may include some or all tags (but it is uncommon).

Version:
$Revision$ $Date$
Author:
Stepan Roh, Polarion Software
See Also:
  • Method Details

    • getTags

      Collection getTags()
      Return all available tag names.
      Returns:
      Collection of String tag names (not null)
    • getTagValue

      Object getTagValue(String tag)
      Return tag value.

      Some tags may implement IXMLRepresentable.

      Parameters:
      tag - tag name
      Returns:
      tag value (not null)
      Throws:
      IllegalArgumentException - if tag is null
    • toString

      String toString()
      String representation of this message.

      It may or may not include all or some tags.

      Overrides:
      toString in class Object
      Returns:
      string value or null if not available