org.apache.logging.log4j.message

Interface MessageFactory

    • Method Detail

      • newMessage

        Message newMessage(Object message)
        Creates a new message based on an Object.
        Parameters:
        message - a message object
        Returns:
        a new message
      • newMessage

        Message newMessage(String message)
        Creates a new message based on a String.
        Parameters:
        message - a message String
        Returns:
        a new message

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.