org.apache.logging.log4j.message

Class StructuredDataMessage

    • Constructor Detail

      • StructuredDataMessage

        public StructuredDataMessage(String id,
                                     String msg,
                                     String type)
        Creates a StructuredDataMessage using an ID (max 32 characters), message, and type (max 32 characters).
        Parameters:
        id - The String id.
        msg - The message.
        type - The message type.
      • StructuredDataMessage

        public StructuredDataMessage(String id,
                                     String msg,
                                     String type,
                                     int maxLength)
        Creates a StructuredDataMessage using an ID (user specified max characters), message, and type (user specified maximum number of characters).
        Parameters:
        id - The String id.
        msg - The message.
        type - The message type.
        maxLength - The maximum length of keys;
        Since:
        2.9
      • StructuredDataMessage

        public StructuredDataMessage(String id,
                                     String msg,
                                     String type,
                                     Map<String,String> data)
        Creates a StructuredDataMessage using an ID (max 32 characters), message, type (max 32 characters), and an initial map of structured data to include.
        Parameters:
        id - The String id.
        msg - The message.
        type - The message type.
        data - The StructuredData map.
      • StructuredDataMessage

        public StructuredDataMessage(String id,
                                     String msg,
                                     String type,
                                     Map<String,String> data,
                                     int maxLength)
        Creates a StructuredDataMessage using an (user specified max characters), message, and type (user specified maximum number of characters, and an initial map of structured data to include.
        Parameters:
        id - The String id.
        msg - The message.
        type - The message type.
        data - The StructuredData map.
        maxLength - The maximum length of keys;
        Since:
        2.9
      • StructuredDataMessage

        public StructuredDataMessage(StructuredDataId id,
                                     String msg,
                                     String type)
        Creates a StructuredDataMessage using a StructuredDataId, message, and type (max 32 characters).
        Parameters:
        id - The StructuredDataId.
        msg - The message.
        type - The message type.
      • StructuredDataMessage

        public StructuredDataMessage(StructuredDataId id,
                                     String msg,
                                     String type,
                                     int maxLength)
        Creates a StructuredDataMessage using a StructuredDataId, message, and type (max 32 characters).
        Parameters:
        id - The StructuredDataId.
        msg - The message.
        type - The message type.
        maxLength - The maximum length of keys;
        Since:
        2.9
      • StructuredDataMessage

        public StructuredDataMessage(StructuredDataId id,
                                     String msg,
                                     String type,
                                     Map<String,String> data)
        Creates a StructuredDataMessage using a StructuredDataId, message, type (max 32 characters), and an initial map of structured data to include.
        Parameters:
        id - The StructuredDataId.
        msg - The message.
        type - The message type.
        data - The StructuredData map.
      • StructuredDataMessage

        public StructuredDataMessage(StructuredDataId id,
                                     String msg,
                                     String type,
                                     Map<String,String> data,
                                     int maxLength)
        Creates a StructuredDataMessage using a StructuredDataId, message, type (max 32 characters), and an initial map of structured data to include.
        Parameters:
        id - The StructuredDataId.
        msg - The message.
        type - The message type.
        data - The StructuredData map.
        maxLength - The maximum length of keys;
        Since:
        2.9
      • StructuredDataMessage

        protected StructuredDataMessage()
        Basic constructor.

Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.