Skip to content

Commit

Permalink
- tentative implementation of TelnetAppender
Browse files Browse the repository at this point in the history
  • Loading branch information
ceki committed Jul 9, 2007
1 parent 1d03650 commit c291b38
Showing 1 changed file with 38 additions and 0 deletions.
@@ -0,0 +1,38 @@
package ch.qos.logback.core.net;

import java.net.ServerSocket;

import ch.qos.logback.core.AppenderBase;

public class TelnetAppender extends AppenderBase {

int port;

@Override
public void start() {
int errorCount = 0;
if (port == 0) {
errorCount++;
addError("No port was configured for appender"
+ name
+ " For more information, please visit http://logback.qos.ch/codes.html#socket_no_port");
}

//ServerSocket serverSocket = new ServerSocket(port);

// connect(address, port);

if (errorCount == 0) {
this.started = true;
}
}

@Override
protected void append(Object eventObject) {
// TODO Auto-generated method stub

}



}

0 comments on commit c291b38

Please sign in to comment.