Class Ethna_Logger

Description

ログ管理クラス

Located in /class/Ethna_Logger.php (line 30)

Ethna_AppManager
   |
   --Ethna_Logger
Method Summary
 static array errorLevelToLogLevel (int $errno)
 Ethna_Logger Ethna_Logger ( &$controller, object Ethna_Controller $controller)
 void begin ()
 void end ()
 mixed getLogFacility ()
 void log (int $level, string $message)
 int _alert (string $message)
 object LogWriter &_getLogWriter (array $option, [string $facility = null])
Methods
static errorLevelToLogLevel (line 225)

PHPエラーレベルをログレベルに変換する

  • return: ログレベル(LOG_NOTICE,...), エラーレベル表示名("E_NOTICE"...)
  • access: public
array errorLevelToLogLevel (int $errno)
  • int $errno: PHPエラーレベル
Constructor Ethna_Logger (line 111)

Ethna_Loggerクラスのコンストラクタ

  • access: public
Ethna_Logger Ethna_Logger ( &$controller, object Ethna_Controller $controller)
begin (line 248)

ログ出力を開始する

  • access: public
void begin ()
end (line 340)

ログ出力を終了する

  • access: public
void end ()
getLogFacility (line 203)

ログファシリティを取得する

  • return: ログファシリティ(ファシリティが1つ以下ならscalar、 2つ以上なら配列を返す for B.C.)
  • access: public
mixed getLogFacility ()
log (line 288)

ログを出力する

  • access: public
void log (int $level, string $message)
  • int $level: ログレベル(LOG_DEBUG, LOG_NOTICE...)
  • string $message: ログメッセージ(+引数)
_alert (line 409)

アラートメールを送信する

  • return: 0:正常終了
  • deprecated:
  • access: protected
int _alert (string $message)
  • string $message: ログメッセージ
_getLogWriter (line 359)

LogWriterオブジェクトを取得する

  • return: LogWriterオブジェクト
  • access: protected
object LogWriter &_getLogWriter (array $option, [string $facility = null])
  • array $option: ログオプション
  • string $facility: ログファシリティ

Inherited Methods

Inherited From Ethna_AppManager

 Ethna_AppManager::Ethna_AppManager()
 Ethna_AppManager::getAttrList()
 Ethna_AppManager::getAttrLongName()
 Ethna_AppManager::getAttrName()
 Ethna_AppManager::getObjectList()
 Ethna_AppManager::getObjectProp()
 Ethna_AppManager::getObjectPropList()

Documentation generated on Fri, 11 Nov 2011 03:59:54 +0900 by phpDocumentor 1.4.3