クラス LogWriter
- java.lang.Object
-
- org.opengion.fukurou.system.LogWriter
-
-
メソッドの概要
すべてのメソッド staticメソッド concreteメソッド 修飾子とタイプ メソッド 説明 static voidclose()PrintWriter を close() します。static voidinit(String url, String enc)Logファイルの出力先を設定します。static voidlog(String message)Logを書き出します。static voidlog(Throwable th)例外のスタックトレースをLogWriterのPrintWriterに書き出します。
-
-
-
メソッドの詳細
-
init
public static void init(String url, String enc)
Logファイルの出力先を設定します。 このファイル名は、日付フォーマット変数を含むことができます。- パラメータ:
url- 出力先enc- エンコード- 関連項目:
DateSet.changeString(String)
-
log
public static void log(Throwable th)
例外のスタックトレースをLogWriterのPrintWriterに書き出します。- パラメータ:
th- スタックトレースの取得元Throwableオブジェクト
-
close
public static void close()
PrintWriter を close() します。
-
-