Making fixes to StdErrLogTest
This commit is contained in:
parent
c174304996
commit
5c516c9e7b
|
@ -30,9 +30,9 @@ public class NamedLogTest
|
|||
|
||||
StdErrCapture output = new StdErrCapture();
|
||||
|
||||
setLoggerOptions(Red.class, output);
|
||||
setLoggerOptions(Green.class, output);
|
||||
setLoggerOptions(Blue.class, output);
|
||||
setLoggerOptions(Red.class,output);
|
||||
setLoggerOptions(Green.class,output);
|
||||
setLoggerOptions(Blue.class,output);
|
||||
|
||||
red.generateLogs();
|
||||
green.generateLogs();
|
||||
|
@ -48,7 +48,8 @@ public class NamedLogTest
|
|||
Logger logger = Log.getLogger(clazz);
|
||||
logger.setDebugEnabled(true);
|
||||
|
||||
if(logger instanceof StdErrLog) {
|
||||
if (logger instanceof StdErrLog)
|
||||
{
|
||||
StdErrLog sel = (StdErrLog)logger;
|
||||
sel.setPrintLongNames(true);
|
||||
output.capture(sel);
|
||||
|
|
Loading…
Reference in New Issue