| 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.4 2008/01/11 15:19:06 redfish Exp $ |
| 19 | |
| 20 | package org.ktc.rbutils.rb.generation; |
| 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 generation process. |
| 28 | * @since RbUtils 0.4 |
| 29 | * @version $Revision: 1.4 $ |
| 30 | * @author ktcguru |
| 31 | */ |
| 32 | public class XmlLogger extends AbstractXmlLogger { |
| 33 | |
| 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 | //TODO taskname : should be modified and located in the Logger interface as constant |
| 44 | taskName = "rbgenerator"; |
| 45 | } |
| 46 | |
| 47 | } |