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

@ -27,12 +27,12 @@ public class NamedLogTest
Red red = new Red();
Green green = new Green();
Blue blue = new Blue();
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();
@ -47,8 +47,9 @@ 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);