java.lang.Objectorg.apache.log4j.AppenderSkeleton
com.microfocus.cobol.connector.transport.BINPConsoleLogger
log4j console logger, allows connector messages to be send to enterprise server
Copyright: Copyright (c) 2002-2003 Company: Micro Focus International Ltd
| Field Summary |
| Fields inherited from class org.apache.log4j.AppenderSkeleton |
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
| Constructor Summary | |
BINPConsoleLogger()
Constructor declaration |
|
| Method Summary | |
void |
activateOptions()
Connect to the specified RemoteHost and Port. |
void |
append(LoggingEvent event)
Method declaration |
void |
cleanUp()
Drop the connection to the remote host and release the underlying connector thread if it has been created |
void |
close()
Close this appender. |
boolean |
getLocationInfo()
Returns value of the LocationInfo option. |
int |
getPort()
Returns value of the Port option. |
String |
getRemoteHost()
Returns value of the RemoteHost option. |
boolean |
requiresLayout()
The SocketAppender does not use a layout. |
void |
setLayout(Layout layout)
Method declaration |
void |
setLocationInfo(boolean locationInfo)
The LocationInfo option takes a boolean value. |
void |
setPort(int port)
The Port option takes a positive integer representing the port where the server is waiting for connections. |
void |
setRemoteHost(String host)
The RemoteHost option takes a string value which should be the host name of the server where a SocketNode is
running. |
| Methods inherited from class org.apache.log4j.AppenderSkeleton |
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setName, setThreshold |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BINPConsoleLogger()
| Method Detail |
public void activateOptions()
activateOptions in interface OptionHandleractivateOptions in class AppenderSkeletonpublic void close()
This will mark the appender as closed and call then cleanUp() method.
public void cleanUp()
public void append(LoggingEvent event)
append in class AppenderSkeletonevent - public boolean requiresLayout()
false.
public void setRemoteHost(String host)
SocketNode is
running.
public String getRemoteHost()
public void setPort(int port)
public int getPort()
public void setLocationInfo(boolean locationInfo)
public boolean getLocationInfo()
public void setLayout(Layout layout)
setLayout in interface AppendersetLayout in class AppenderSkeletonlayout - Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.