public final class LogWriter extends Object
Logを書き込む為の PrintWriter を管理するクラスです。 実際の Log の書き込みには, LogSender を利用して下さい。
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static void |
close()
PrintWriter を close() します。
|
static void |
init(String url)
Logファイルの出力先を設定します。
|
static void |
log(String message)
Logを書き出します。
|
static void |
log(Throwable th)
例外のスタックトレースをLogWriterのPrintWriterに書き出します。
|
public static void init(String url)
url - 出力先DateSet.changeString(String)| 4.1.0.1 (2008/01/23) 新規作成 |
| 6.3.9.0 (2015/11/06) Use block level rather than method level synchronization.(PMD) |
| 6.4.2.0 (2016/01/29) 出力先変更時は、既存の Writer をclose() してからにする。 |
public static void log(String message)
message - メッセージ| 4.1.0.1 (2008/01/23) 出力時間を出力する。 |
| 5.5.7.2 (2012/10/09) HybsDateUtil を利用するように修正します。 |
| 6.3.9.0 (2015/11/06) Use block level rather than method level synchronization.(PMD) |
public static void log(Throwable th)
th - スタックトレースの取得元Throwableオブジェクト| 4.1.0.1 (2008/01/23) 新規作成 |
| 4.3.4.5 (2009/01/08) nullチェック追加 |
| 6.3.9.0 (2015/11/06) Use block level rather than method level synchronization.(PMD) |
public static void close()
| 6.3.9.0 (2015/11/06) Use block level rather than method level synchronization.(PMD) |
Webアプリケーションフレームワーク openGionCopyright (c) 2009 The openGion Project.