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