Created
May 21, 2013 14:04
-
-
Save pluto-atom-4/5620019 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package local.example.testng; | |
import org.apache.log4j.AppenderSkeleton; | |
import org.apache.log4j.spi.LoggingEvent; | |
import org.testng.Reporter; | |
public class ReporterAppender extends AppenderSkeleton { | |
@Override | |
protected void append(LoggingEvent event) { | |
Reporter.log(getLayout().format(event), false); | |
} | |
public void close() { | |
} | |
public boolean requiresLayout() { | |
return true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment