[logback-dev] svn commit: r1551 - logback/trunk/logback-core/src/main/java/ch/qos/logback/core/net
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Mon Jul 9 22:10:17 CEST 2007
Author: ceki
Date: Mon Jul 9 22:10:17 2007
New Revision: 1551
Added:
logback/trunk/logback-core/src/main/java/ch/qos/logback/core/net/TelnetAppender.java
Log:
- tentative implementation of TelnetAppender
Added: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/net/TelnetAppender.java
==============================================================================
--- (empty file)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/net/TelnetAppender.java Mon Jul 9 22:10:17 2007
@@ -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
+
+ }
+
+
+
+}
More information about the logback-dev
mailing list