001    /*
002     * Copyright (c) 2009 The openGion Project.
003     *
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     *     http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
013     * either express or implied. See the License for the specific language
014     * governing permissions and limitations under the License.
015     */
016    package org.opengion.fukurou.process;
017    
018    import java.io.PrintWriter ;
019    
020    /**
021     * LoggerProcess インターフェース は、AbstractProcess を実行する上でå¿?¦�となã‚?
022     * å�?¨®パラメータを設定しますã?
023     * 特に、データベã?ス接続を使用する場合ã?、このインターフェースを使用してã€?
024     * ãƒ??タベã?スコネクションを取得するå¿?¦�がありますã?
025     *
026     * @version  4.0
027     * @author   Kazuhiko Hasegawa
028     * @since    JDK5.0,
029     */
030    public interface LoggerProcess extends HybsProcess {
031            /**
032             * ログ出力用のPrintWriterを設定しますã?
033             * 通常は、引数の -logFile=XXXX でæŒ?®šしますが、直接 PrintWriter ã‚?
034             * 渡すå¿?¦�があるケース(JSPなどで使用するケース)で使用しますã?
035             * 引数より、こちらã?設定ã?ほã�?�Œ、優先されますã?
036             *
037             * @param       logging ログ出力用のPrintWriter
038             */
039            void setLoggingWriter( final PrintWriter logging ) ;
040    
041            /**
042             * 画面表示用のPrintWriterを設定しますã?
043             * 通常は、引数の -dispFile=XXXX でæŒ?®šしますが、直接 PrintWriter ã‚?
044             * 渡すå¿?¦�があるケース(JSPなどで使用するケース)で使用しますã?
045             * 引数より、こちらã?設定ã?ほã�?�Œ、優先されますã?
046             *
047             * @param       display 画面表示用のPrintWriter
048             */
049            void setDisplayWriter( final PrintWriter display ) ;
050    
051            /**
052             * エラーログにメãƒ?‚»ージを表示しますã?
053             * ここに書き込まれたメãƒ?‚»ージはã€??常ログと、特殊ログの
054             * 両方に書き込まれますã?
055             * 特殊ログとは、メール連絡等ã?ことですã?
056             *
057             * @param       msg     表示するメãƒ?‚»ージ
058             * @param       th      例外オブジェクãƒ?
059             */
060            void errLog( final String msg,final Throwable th ) ;
061    }