|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Handler
net.sf.ircappender.IrcHandler
public class IrcHandler
appends log-events to an irc channel.
Constructor Summary | |
---|---|
IrcHandler()
Initializes the system after the options are set |
Method Summary | |
---|---|
void |
close()
Shuts down the appender. |
void |
flush()
|
int |
getBuffersize()
Returns the configured buffersize |
java.lang.String |
getBuffertype()
gets the name of the buffer strategy |
java.lang.String |
getChannel()
Returns the configured channel |
java.lang.String |
getHost()
Returns the configured host |
long |
getMessageDelay()
gets the delay between multiple messages |
java.lang.String |
getNickname()
gets the IRC nickname of the bot |
java.lang.String |
getPassword()
gets the IRC password |
int |
getPort()
Returns the configured irc server port |
java.lang.String |
getUsername()
gets the IRC username |
boolean |
isDebug()
is debugging enabled |
boolean |
isSsl()
Is SSL used to secure the connection to the IRC server? |
void |
publish(java.util.logging.LogRecord logRecord)
Recieves a LoggingEvent for handling. |
void |
setBuffersize(int buffersize)
Sets the buffersize. |
void |
setBuffertype(java.lang.String buffertype)
Sets the buffer strategy. |
void |
setChannel(java.lang.String channel)
Sets the channel. |
void |
setDebug(boolean debug)
enables or disables debugging messages |
void |
setHost(java.lang.String host)
Sets the host. |
void |
setMessageDelay(long messageDelay)
Set the delay between messages. |
void |
setNickname(java.lang.String nickname)
Sets the nickname. |
void |
setPassword(java.lang.String password)
Sets the password. |
void |
setPort(int port)
Sets the irc server port |
void |
setSsl(boolean ssl)
Enables or disables the use of SSL for the IRC connection |
void |
setUsername(java.lang.String username)
Sets the username. |
Methods inherited from class java.util.logging.Handler |
---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IrcHandler()
Method Detail |
---|
public void close()
close
in class java.util.logging.Handler
public void flush()
flush
in class java.util.logging.Handler
public int getBuffersize()
public java.lang.String getBuffertype()
public java.lang.String getChannel()
public java.lang.String getHost()
public long getMessageDelay()
public java.lang.String getNickname()
public java.lang.String getPassword()
public int getPort()
public java.lang.String getUsername()
public boolean isDebug()
public boolean isSsl()
public void publish(java.util.logging.LogRecord logRecord)
publish
in class java.util.logging.Handler
logRecord
- logging eventpublic void setBuffersize(int buffersize)
buffersize
- The buffersize to setpublic void setBuffertype(java.lang.String buffertype)
buffertype
- The buffertype to setpublic void setChannel(java.lang.String channel)
channel
- The channel to setpublic void setDebug(boolean debug)
debug
- should debug message be written to stdout?public void setHost(java.lang.String host)
host
- The host to setpublic void setMessageDelay(long messageDelay)
messageDelay
- in millisecondspublic void setNickname(java.lang.String nickname)
nickname
- The nickname to setpublic void setPassword(java.lang.String password)
password
- The password to setpublic void setPort(int port)
port
- portpublic void setSsl(boolean ssl)
ssl
- true to enable SSL securitypublic void setUsername(java.lang.String username)
username
- The username to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |