| 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: DefaultLogger.java,v 1.3 2006/09/16 14:54:36 redfish Exp $ |
| 19 | |
| 20 | package org.ktc.rbutils.rb.generation; |
| 21 | |
| 22 | import java.io.OutputStream; |
| 23 | import org.ktc.rbutils.api.audit.AbstractDefaultLogger; |
| 24 | |
| 25 | /** |
| 26 | * Plain text logger for RbGenerator. |
| 27 | * @see org.ktc.rbutils.audit.DefaultLogger |
| 28 | * @since RbUtils 0.4 |
| 29 | * @version $Revision: 1.3 $ |
| 30 | * @author ktcguru |
| 31 | */ |
| 32 | public class DefaultLogger extends AbstractDefaultLogger { |
| 33 | |
| 34 | /** |
| 35 | * Creates a new <code>DefaultLogger</code> instance for RbGenerator. |
| 36 | * @param infoStream the <code>OutputStream</code> for info messages |
| 37 | * @param closeInfoAfterUse auditFinished should close aInfoStream |
| 38 | * @param errorStream the <code>OutputStream</code> for error messages |
| 39 | * @param closeErrorAfterUse auditFinished should close aErrorStream |
| 40 | */ |
| 41 | public DefaultLogger(final OutputStream infoStream, final boolean closeInfoAfterUse, |
| 42 | final OutputStream errorStream, final boolean closeErrorAfterUse) |
| 43 | { |
| 44 | super(infoStream, closeInfoAfterUse, errorStream, closeErrorAfterUse); |
| 45 | this.taskname = "RbGenerator"; |
| 46 | } |
| 47 | |
| 48 | } |