Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
logback-access/src/main/java/ch/qos/logback/access/net/server/SSLServerSocketAppender.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,44 @@ | ||
/** | ||
* Logback: the reliable, generic, fast and flexible logging framework. | ||
* Copyright (C) 1999-2011, QOS.ch. All rights reserved. | ||
* | ||
* This program and the accompanying materials are dual-licensed under | ||
* either the terms of the Eclipse Public License v1.0 as published by | ||
* the Eclipse Foundation | ||
* | ||
* or (per the licensee's choosing) | ||
* | ||
* under the terms of the GNU Lesser General Public License version 2.1 | ||
* as published by the Free Software Foundation. | ||
*/ | ||
package ch.qos.logback.access.net.server; | ||
|
||
import ch.qos.logback.access.net.AccessEventPreSerializationTransformer; | ||
import ch.qos.logback.access.spi.IAccessEvent; | ||
import ch.qos.logback.core.net.server.SSLServerSocketAppenderBase; | ||
import ch.qos.logback.core.spi.PreSerializationTransformer; | ||
|
||
/** | ||
* An appender that listens on a TCP port for connections from remote | ||
* loggers. Each event delivered to this appender is delivered to all | ||
* connected remote loggers. | ||
* | ||
* @author Carl Harris | ||
*/ | ||
public class SSLServerSocketAppender | ||
extends SSLServerSocketAppenderBase<IAccessEvent> { | ||
|
||
private static final PreSerializationTransformer<IAccessEvent> pst = | ||
new AccessEventPreSerializationTransformer(); | ||
|
||
@Override | ||
protected void postProcessEvent(IAccessEvent event) { | ||
event.prepareForDeferredProcessing(); | ||
} | ||
|
||
@Override | ||
protected PreSerializationTransformer<IAccessEvent> getPST() { | ||
return pst; | ||
} | ||
|
||
} |
44 changes: 44 additions & 0 deletions
44
logback-access/src/main/java/ch/qos/logback/access/net/server/ServerSocketAppender.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,44 @@ | ||
/** | ||
* Logback: the reliable, generic, fast and flexible logging framework. | ||
* Copyright (C) 1999-2011, QOS.ch. All rights reserved. | ||
* | ||
* This program and the accompanying materials are dual-licensed under | ||
* either the terms of the Eclipse Public License v1.0 as published by | ||
* the Eclipse Foundation | ||
* | ||
* or (per the licensee's choosing) | ||
* | ||
* under the terms of the GNU Lesser General Public License version 2.1 | ||
* as published by the Free Software Foundation. | ||
*/ | ||
package ch.qos.logback.access.net.server; | ||
|
||
import ch.qos.logback.access.net.AccessEventPreSerializationTransformer; | ||
import ch.qos.logback.access.spi.IAccessEvent; | ||
import ch.qos.logback.core.net.server.ServerSocketAppenderBase; | ||
import ch.qos.logback.core.spi.PreSerializationTransformer; | ||
|
||
/** | ||
* An appender that listens on a TCP port for connections from remote | ||
* loggers. Each event delivered to this appender is delivered to all | ||
* connected remote loggers. | ||
* | ||
* @author Carl Harris | ||
*/ | ||
public class ServerSocketAppender | ||
extends ServerSocketAppenderBase<IAccessEvent> { | ||
|
||
private static final PreSerializationTransformer<IAccessEvent> pst = | ||
new AccessEventPreSerializationTransformer(); | ||
|
||
@Override | ||
protected void postProcessEvent(IAccessEvent event) { | ||
event.prepareForDeferredProcessing(); | ||
} | ||
|
||
@Override | ||
protected PreSerializationTransformer<IAccessEvent> getPST() { | ||
return pst; | ||
} | ||
|
||
} |