Class IMAppender
- java.lang.Object
-
- org.apache.log4j.AppenderSkeleton
-
- org.wso2.carbon.utils.logging.appenders.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
-
-
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidactivateOptions()Deprecated.Options are activated and become effective only after calling this method.voidappend(org.apache.log4j.spi.LoggingEvent event)Deprecated.This method called byAppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent)method does most of the real appending work.protected booleancheckEntryConditions()Deprecated.This method determines if there is a sense in attempting to append.voidclose()Deprecated.Close this IMAppender.intgetBufferSize()Deprecated.StringgetEvaluatorClass()Deprecated.StringgetHost()Deprecated.StringgetNickname()Deprecated.StringgetPassword()Deprecated.intgetPort()Deprecated.StringgetRecipient()Deprecated.StringgetUsername()Deprecated.booleanisChatroom()Deprecated.booleanisSSL()Deprecated.booleanrequiresLayout()Deprecated.The IMAppender requires a layout.protected voidsendBuffer()Deprecated.Send the contents of the cyclic buffer as an IM message.voidsetBufferSize(int bufferSize)Deprecated.voidsetChatroom(boolean chatroom)Deprecated.voidsetEvaluatorClass(String value)Deprecated.The EvaluatorClass option takes a string value representing the name of the class implementing theTriggeringEventEvaluatorinterface.voidsetHost(String host)Deprecated.voidsetNickname(String nickname)Deprecated.voidsetPassword(String password)Deprecated.voidsetPort(int port)Deprecated.voidsetRecipient(String recipient)Deprecated.voidsetSSL(boolean enableSSL)Deprecated.voidsetUsername(String username)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 theTriggeringEventEvaluatorinterface. 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:
activateOptionsin interfaceorg.apache.log4j.spi.OptionHandler- Overrides:
activateOptionsin classorg.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 byAppenderSkeleton.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:
appendin classorg.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
falseis returned.
-
requiresLayout
public boolean requiresLayout()
Deprecated.The IMAppender requires a layout. Hence, this method returnstrue.
-
-