net.argius.stu
クラス Log

java.lang.Object
  拡張net.argius.stu.Log

public class Log
extends Object

ログ出力オブジェクトです。


フィールドの概要
static int DEBUG
          エラー・警告・実行情報・デバッグ情報を出力します。
static int ERROR
          エラーのみ出力します。
static int INFO
          エラー・警告・実行情報を出力します。
static int VERBOSE
          DEBUGに加えて、さらに冗長な情報を出力します。
static int WARN
          エラー・警告を出力します。
 
メソッドの概要
protected  String decorate(int level, String message)
          メッセージを装飾します。
protected  String getDateFormat()
          現在日時の文字列を取得します。
 int getLevel()
          ログレベルを取得します。
protected  char getLevelInitialCharacter(int level)
          ログレベルを表す頭文字を取得します。
protected  int getLevelInteger(String levelstring)
          ログレベルの文字列表現を数値に変換して返します。
protected  String getLevelString(int level)
          ログレベルの文字列表現を返します。
protected  void write(String message)
          メッセージをストリームに出力します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

ERROR

public static final int ERROR
エラーのみ出力します。

関連項目:
定数フィールド値

WARN

public static final int WARN
エラー・警告を出力します。

関連項目:
定数フィールド値

INFO

public static final int INFO
エラー・警告・実行情報を出力します。

関連項目:
定数フィールド値

DEBUG

public static final int DEBUG
エラー・警告・実行情報・デバッグ情報を出力します。

関連項目:
定数フィールド値

VERBOSE

public static final int VERBOSE
DEBUGに加えて、さらに冗長な情報を出力します。

関連項目:
定数フィールド値
メソッドの詳細

decorate

protected String decorate(int level,
                          String message)
メッセージを装飾します。

パラメータ:
level - ログレベル
message - メッセージ
戻り値:
装飾されたメッセージ

getDateFormat

protected String getDateFormat()
現在日時の文字列を取得します。

戻り値:
現在日時の文字列

write

protected void write(String message)
メッセージをストリームに出力します。

パラメータ:
message - メッセージ

getLevel

public final int getLevel()
ログレベルを取得します。

戻り値:
ログレベル

getLevelInitialCharacter

protected final char getLevelInitialCharacter(int level)
ログレベルを表す頭文字を取得します。

パラメータ:
level - ログレベル
戻り値:
ログレベルの頭文字

getLevelString

protected final String getLevelString(int level)
ログレベルの文字列表現を返します。

パラメータ:
level - ログレベル
戻り値:
ログレベルの文字列表現

getLevelInteger

protected final int getLevelInteger(String levelstring)
ログレベルの文字列表現を数値に変換して返します。

パラメータ:
levelstring - ログレベルの文字列表現
戻り値:
ログレベル