Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- realigning with MDC as defined in SLF4J
- Loading branch information
Showing
11 changed files
with
74 additions
and
19 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
logback-classic/src/main/java/ch/qos/logback/classic/net/SocketAcceptor.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,10 @@ | ||
package ch.qos.logback.classic.net; | ||
|
||
class SocketAcceptor extends Thread { | ||
|
||
|
||
@Override | ||
public void run() { | ||
|
||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
logback-classic/src/main/java/ch/qos/logback/classic/turbo/MDCFilter.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
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
33 changes: 33 additions & 0 deletions
33
logback-classic/src/main/java/org/slf4j/impl/StaticMDCBinder.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,33 @@ | ||
package org.slf4j.impl; | ||
|
||
import org.slf4j.spi.MDCAdapter; | ||
|
||
|
||
/** | ||
* This implementation is bound to {@link LogbackMDCAdapter}. | ||
* | ||
* @author Ceki Gülcü | ||
*/ | ||
public class StaticMDCBinder { | ||
|
||
|
||
/** | ||
* The unique instance of this class. | ||
*/ | ||
public static final StaticMDCBinder SINGLETON = new StaticMDCBinder(); | ||
|
||
private StaticMDCBinder() { | ||
} | ||
|
||
/** | ||
* Currently this method always returns an instance of | ||
* {@link StaticMDCBinder}. | ||
*/ | ||
public MDCAdapter getMDCA() { | ||
return new LogbackMDCAdapter(); | ||
} | ||
|
||
public String getMDCAdapterClassStr() { | ||
return LogbackMDCAdapter.class.getName(); | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
logback-classic/src/test/java/ch/qos/logback/classic/MDCTestThread.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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package ch.qos.logback.classic; | ||
|
||
import org.slf4j.MDC; | ||
|
||
public class MDCTestThread extends Thread { | ||
|
||
String val; | ||
|
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
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
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
4 changes: 3 additions & 1 deletion
4
logback-classic/src/test/java/ch/qos/logback/classic/pattern/MDCConverterTest.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
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