Making fixes to StdErrLogTest

This commit is contained in:
Joakim Erdfelt 2011-10-28 09:12:29 -07:00
parent c174304996
commit 5c516c9e7b
1 changed files with 8 additions and 7 deletions

View File

@ -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);