Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- tentative implementation of TelnetAppender
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
logback-core/src/main/java/ch/qos/logback/core/net/TelnetAppender.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
||
} | ||
|
||
|
||
|
||
} |