@@ -81,30 +81,6 @@ public synchronized FluentLogger getLogger(String tagPrefix, String host, int po
8181 return logger ;
8282 }
8383
84- public FluentLogger getLogger (String tagPrefix , String host , int port , int timeout , int bufferCapacity ,
85- Sender sender ) {
86- if (sender == null ) {
87- return getLogger (tagPrefix , host , port , timeout , bufferCapacity );
88- }
89- String key = String .format ("%s_%s_%d_%d_%d_%s" , new Object [] { tagPrefix , host , port , timeout , bufferCapacity , sender .getName () });
90- if (loggers .containsValue (key )) {
91- for (Map .Entry <FluentLogger , String > entry : loggers .entrySet ()) {
92- if (entry .getValue ().equals (key )) {
93- FluentLogger found = entry .getKey ();
94- if (found != null ) {
95- return found ;
96- }
97- break ;
98- }
99- }
100- return getLogger (tagPrefix , host , port , timeout , bufferCapacity );
101- } else {
102- FluentLogger logger = new FluentLogger (tagPrefix , sender );
103- loggers .put (logger , key );
104- return logger ;
105- }
106- }
107-
10884 @ SuppressWarnings ("unchecked" )
10985 private Sender createSenderInstance (final String className , final Object [] params ) throws ClassNotFoundException ,
11086 SecurityException , NoSuchMethodException , IllegalArgumentException , InstantiationException ,
0 commit comments