Class IMAppender

  • All Implemented Interfaces:
    org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

    @Deprecated
    public class IMAppender
    extends org.apache.log4j.AppenderSkeleton
    Deprecated.
    Configuration is done in log4j2.properties file.
    IMAppender appends tracing requests through instant messaging network.
    Version:
    $Revision: 1.2 $
    Author:
    Rafael Luque & Ruth Zamorano
    • Field Summary

      • Fields inherited from class org.apache.log4j.AppenderSkeleton

        closed, errorHandler, headFilter, layout, name, tailFilter, threshold
    • Constructor Summary

      Constructors 
      Constructor Description
      IMAppender()
      Deprecated.
      The default constructor will instantiate the appender with a default TriggeringEventEvaluator that will trigger on events with level ERROR or higher.
      IMAppender​(org.apache.log4j.spi.TriggeringEventEvaluator evaluator)
      Deprecated.
       
    • Constructor Detail

      • IMAppender

        public IMAppender()
        Deprecated.
        The default constructor will instantiate the appender with a default TriggeringEventEvaluator that will trigger on events with level ERROR or higher.
      • IMAppender

        public IMAppender​(org.apache.log4j.spi.TriggeringEventEvaluator evaluator)
        Deprecated.
    • Method Detail

      • getHost

        public String getHost()
        Deprecated.
      • setHost

        public void setHost​(String host)
        Deprecated.
      • getPort

        public int getPort()
        Deprecated.
      • setPort

        public void setPort​(int port)
        Deprecated.
      • getUsername

        public String getUsername()
        Deprecated.
      • setUsername

        public void setUsername​(String username)
        Deprecated.
      • getPassword

        public String getPassword()
        Deprecated.
      • setPassword

        public void setPassword​(String password)
        Deprecated.
      • getRecipient

        public String getRecipient()
        Deprecated.
      • setRecipient

        public void setRecipient​(String recipient)
        Deprecated.
      • isChatroom

        public boolean isChatroom()
        Deprecated.
      • setChatroom

        public void setChatroom​(boolean chatroom)
        Deprecated.
      • getNickname

        public String getNickname()
        Deprecated.
      • setNickname

        public void setNickname​(String nickname)
        Deprecated.
      • isSSL

        public boolean isSSL()
        Deprecated.
      • setSSL

        public void setSSL​(boolean enableSSL)
        Deprecated.
      • getBufferSize

        public int getBufferSize()
        Deprecated.
      • setBufferSize

        public void setBufferSize​(int bufferSize)
        Deprecated.
      • setEvaluatorClass

        public void setEvaluatorClass​(String value)
        Deprecated.
        The EvaluatorClass option takes a string value representing the name of the class implementing the TriggeringEventEvaluator interface. A corresponding object will be instantiated and assigned as the triggering event evaluator for the SMTPAppender.
      • getEvaluatorClass

        public String getEvaluatorClass()
        Deprecated.
      • activateOptions

        public void activateOptions()
        Deprecated.
        Options are activated and become effective only after calling this method.
        Specified by:
        activateOptions in interface org.apache.log4j.spi.OptionHandler
        Overrides:
        activateOptions in class org.apache.log4j.AppenderSkeleton
      • close

        public void close()
        Deprecated.
        Close this IMAppender. Closing all resources used by the appender. A closed appender cannot be re-opened.
      • append

        public void append​(org.apache.log4j.spi.LoggingEvent event)
        Deprecated.
        This method called by AppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent) method does most of the real appending work. Adds the event to a buffer and checks if the event triggers a message to be sent.
        Specified by:
        append in class org.apache.log4j.AppenderSkeleton
      • sendBuffer

        protected void sendBuffer()
        Deprecated.
        Send the contents of the cyclic buffer as an IM message.
      • checkEntryConditions

        protected boolean checkEntryConditions()
        Deprecated.
        This method determines if there is a sense in attempting to append.

        It checks whether there is an output chat available and also if there is a set layout. If these checks fail, then the boolean value false is returned.

      • requiresLayout

        public boolean requiresLayout()
        Deprecated.
        The IMAppender requires a layout. Hence, this method returns true.