Monday, August 13, 2007 04:56 PM
I have a situation where in i need to log to a HTML file.
I want to change the pattern which Log4j writes the logs into html file.
Can anyone help me achieve this. I am using log4j 1.2.8.
Thanks in advance
Logger log = Logger.getLogger("AdminMessage");
HTMLLayout myLayout = new HTMLLayout();
Appender myAppender = new FileAppender(myLayout, "hello.html");