クラス WedgeFileHandler

java.lang.Object
java.util.logging.Handler
jp.ne.mki.wedge.option.log.handler.WedgeFileHandler
すべての実装されたインタフェース:
jp.ne.mki.wedge.common.interfaces.PropertiesSetterInterface

public class WedgeFileHandler extends Handler implements jp.ne.mki.wedge.common.interfaces.PropertiesSetterInterface
製品独自のFile出力ハンドラクラスです。
このクラスは標準の java.util.logging.FileHandler と異なり、
ファイルのロックなどを行いません。
ログ出力のタイミングで、ファイルをオープンし、
ログ出力が完了するたびに、ファイルをクローズします。

  • フィールド詳細

    • lockFile

      protected File lockFile
    • files

      protected File[] files
  • コンストラクタの詳細

  • メソッドの詳細

    • setConfigProperties

      public void setConfigProperties(Properties pro)
      コンフィグに設定された値を、引数に受け取り、 このオブジェクトの プロパティを設定します。
      定義:
      setConfigProperties インタフェース内 jp.ne.mki.wedge.common.interfaces.PropertiesSetterInterface
      パラメータ:
      pro - コンフィグに定義されたプロパティ情報
      例外:
      IOException
    • getConfigProperties

      public Properties getConfigProperties()
      インタフェースからコピーされた説明: jp.ne.mki.wedge.common.interfaces.PropertiesSetterInterface
      エンジン側から コンフィグ情報を読み取ります。 この機能は オブジェクトの情報を出力するために使用されます。
      定義:
      getConfigProperties インタフェース内 jp.ne.mki.wedge.common.interfaces.PropertiesSetterInterface
      戻り値:
      Properties
    • setFileName

      public void setFileName() throws IOException
      例外:
      IOException
    • close

      public void close() throws SecurityException
      定義:
      close クラス内 Handler
      例外:
      SecurityException
    • flush

      public void flush()
      定義:
      flush クラス内 Handler
    • publish

      public void publish(LogRecord record)
      定義:
      publish クラス内 Handler
    • getPattern

      public String getPattern()