| 1 | /* |
| 2 | * Copyright 2005-2006 The RbUtils Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | * |
| 16 | */ |
| 17 | |
| 18 | // $Id: XmlLogger.java,v 1.5 2007/07/08 04:32:17 ktcguru Exp $ |
| 19 | |
| 20 | package org.ktc.rbutils.rb.check; |
| 21 | |
| 22 | import java.io.File; |
| 23 | import java.io.IOException; |
| 24 | import org.ktc.rbutils.api.audit.AbstractXmlLogger; |
| 25 | |
| 26 | /** |
| 27 | * Simple XML logger for rb check process. |
| 28 | * @since RbUtils 0.4 |
| 29 | * @version $Revision: 1.5 $ |
| 30 | * @author redfish |
| 31 | * @author ktcguru |
| 32 | */ |
| 33 | public class XmlLogger extends AbstractXmlLogger { |
| 34 | /** |
| 35 | * Creates a new <code>XmlLogger</code> instance. |
| 36 | * @param xmlLogFile file to be used to store the logs. |
| 37 | * @throws org.apache.commons.lang.NullArgumentException if xmlLogFile is <code>null</code>. |
| 38 | * @throws IOException if it is not possible to create the file. |
| 39 | * @see AbstractXmlLogger |
| 40 | */ |
| 41 | public XmlLogger(final File xmlLogFile) throws IOException { |
| 42 | super(xmlLogFile); |
| 43 | taskName = "rbchecker"; |
| 44 | } |
| 45 | |
| 46 | } |