パッケージ jp.co.sds_corp.util.log
クラス FileHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- java.util.logging.StreamHandler
-
- jp.co.sds_corp.util.log.FileHandler
-
- すべての実装されたインタフェース:
IConfigurable
public class FileHandler extends StreamHandler implements IConfigurable
ログ出力の基本クラスです。 LogLoaderから初期化されることを前提としています。
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 FileHandler()
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 protected OutputStream
getOutputStream()
protected void
init()
void
init(IConfiguration config)
実装クラスがインスタンス化される時に呼び出されます。protected void
initOutput()
void
publish(LogRecord record)
protected void
roll()
protected void
rollWithLock()
protected void
setOutputStream(OutputStream os)
-
クラスから継承されたメソッド java.util.logging.StreamHandler
close, flush, isLoggable, setEncoding
-
クラスから継承されたメソッド java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
-
-
-
-
コンストラクタの詳細
-
FileHandler
public FileHandler() throws IOException
- 例外:
IOException
-
-
メソッドの詳細
-
init
protected void init() throws IOException
- 例外:
IOException
-
init
public void init(IConfiguration config) throws Exception
インタフェースからコピーされた説明:IConfigurable
実装クラスがインスタンス化される時に呼び出されます。 IConfigurationのインターフェイスを用いて 自身の設定情報を反映してください。- 定義:
init
インタフェース内IConfigurable
- パラメータ:
config
- 設定ファイル中のそのモジュールに関する記述の コンテキストを表すIConfigurationオブジェクト- 例外:
Exception
-
initOutput
protected void initOutput() throws IOException
- 例外:
IOException
-
publish
public void publish(LogRecord record)
- オーバーライド:
publish
クラス内StreamHandler
-
roll
protected void roll() throws IOException
- 例外:
IOException
-
rollWithLock
protected void rollWithLock() throws IOException
- 例外:
IOException
-
setOutputStream
protected void setOutputStream(OutputStream os)
- オーバーライド:
setOutputStream
クラス内StreamHandler
-
getOutputStream
protected OutputStream getOutputStream()
-
-