@@ -82,7 +82,7 @@ public void tearDown() throws Exception {
82
82
public void testLocationInfoTest () throws IOException , UserException {
83
83
setupLogging ("location_info" );
84
84
85
- final Logger testLogger = ESLoggerFactory .getLogger ("test" );
85
+ final Logger testLogger = LogManager .getLogger ("test" );
86
86
87
87
testLogger .error ("This is an error message" );
88
88
testLogger .warn ("This is a warning message" );
@@ -108,7 +108,7 @@ public void testLocationInfoTest() throws IOException, UserException {
108
108
public void testDeprecationLogger () throws IOException , UserException {
109
109
setupLogging ("deprecation" );
110
110
111
- final DeprecationLogger deprecationLogger = new DeprecationLogger (ESLoggerFactory .getLogger ("deprecation" ));
111
+ final DeprecationLogger deprecationLogger = new DeprecationLogger (LogManager .getLogger ("deprecation" ));
112
112
113
113
final int deprecatedIterations = randomIntBetween (0 , 256 );
114
114
for (int i = 0 ; i < deprecatedIterations ; i ++) {
@@ -135,7 +135,7 @@ public void testDeprecationLogger() throws IOException, UserException {
135
135
public void testConcurrentDeprecationLogger () throws IOException , UserException , BrokenBarrierException , InterruptedException {
136
136
setupLogging ("deprecation" );
137
137
138
- final DeprecationLogger deprecationLogger = new DeprecationLogger (ESLoggerFactory .getLogger ("deprecation" ));
138
+ final DeprecationLogger deprecationLogger = new DeprecationLogger (LogManager .getLogger ("deprecation" ));
139
139
140
140
final int numberOfThreads = randomIntBetween (2 , 4 );
141
141
final CyclicBarrier barrier = new CyclicBarrier (1 + numberOfThreads );
@@ -214,7 +214,7 @@ public void testConcurrentDeprecationLogger() throws IOException, UserException,
214
214
public void testDeprecationLoggerMaybeLog () throws IOException , UserException {
215
215
setupLogging ("deprecation" );
216
216
217
- final DeprecationLogger deprecationLogger = new DeprecationLogger (ESLoggerFactory .getLogger ("deprecation" ));
217
+ final DeprecationLogger deprecationLogger = new DeprecationLogger (LogManager .getLogger ("deprecation" ));
218
218
219
219
final int iterations = randomIntBetween (1 , 16 );
220
220
@@ -286,12 +286,12 @@ public void testDeprecatedSettings() throws IOException, UserException {
286
286
public void testFindAppender () throws IOException , UserException {
287
287
setupLogging ("find_appender" );
288
288
289
- final Logger hasConsoleAppender = ESLoggerFactory .getLogger ("has_console_appender" );
289
+ final Logger hasConsoleAppender = LogManager .getLogger ("has_console_appender" );
290
290
291
291
final Appender testLoggerConsoleAppender = Loggers .findAppender (hasConsoleAppender , ConsoleAppender .class );
292
292
assertNotNull (testLoggerConsoleAppender );
293
293
assertThat (testLoggerConsoleAppender .getName (), equalTo ("console" ));
294
- final Logger hasCountingNoOpAppender = ESLoggerFactory .getLogger ("has_counting_no_op_appender" );
294
+ final Logger hasCountingNoOpAppender = LogManager .getLogger ("has_counting_no_op_appender" );
295
295
assertNull (Loggers .findAppender (hasCountingNoOpAppender , ConsoleAppender .class ));
296
296
final Appender countingNoOpAppender = Loggers .findAppender (hasCountingNoOpAppender , CountingNoOpAppender .class );
297
297
assertThat (countingNoOpAppender .getName (), equalTo ("counting_no_op" ));
0 commit comments