public class SocketAppenderWithSSHTunneling
extends org.apache.log4j.net.SocketAppender
Constructor and Description |
---|
SocketAppenderWithSSHTunneling(String remoteHost,
int port)
Create a new SocketAppenderWithSSHTunneling with the current username on remote ssh port 22.
|
SocketAppenderWithSSHTunneling(String remoteHost,
int port,
int remoteSSHPort)
Create a new SocketAppenderWithSSHTunneling with the current username.
|
SocketAppenderWithSSHTunneling(String username,
String remoteHost,
int port,
int remoteSSHPort)
Create a new SocketAppenderWithSSHTunneling.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
activateOptions, append, cleanUp, getApplication, getLocationInfo, getPort, getReconnectionDelay, getRemoteHost, isAdvertiseViaMulticastDNS, requiresLayout, setAdvertiseViaMulticastDNS, setApplication, setLocationInfo, setPort, setReconnectionDelay, setRemoteHost
public SocketAppenderWithSSHTunneling(String remoteHost, int port) throws IOException
remoteHost
- the host running the log server.port
- the remote listening port.IOException
public SocketAppenderWithSSHTunneling(String remoteHost, int port, int remoteSSHPort) throws IOException
remoteHost
- the host running the log server.port
- the remote listening port.remoteSSHPort
- the remote ssh port (usually 22).IOException
public SocketAppenderWithSSHTunneling(String username, String remoteHost, int port, int remoteSSHPort) throws IOException
username
- username for ssh connection.remoteHost
- the host running the log server.port
- the remote listening port.remoteSSHPort
- the remote ssh port (usually 22).IOException