このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン 両方とも次のリビジョン | ||
apricot:usage:ja:errors-logging [2020/09/09 08:38] y2sunlight [デバッグ出力] |
apricot:usage:ja:errors-logging [2020/09/10 17:49] y2sunlight [設定ファイル] |
||
---|---|---|---|
行 29: | 行 29: | ||
^メソッド^機能^ | ^メソッド^機能^ | ||
- | |void emergency(string $message, array $context = [])|emergencyレベルのログ| | + | |emergency(string $message, array $context = [])|emergencyレベルのログ| |
- | |void alert(string $message, array $context = [])|alertレベルのログ| | + | |alert(string $message, array $context = [])|alertレベルのログ| |
- | |void critical(string $message, array $context = [])|criticalレベルのログ| | + | |critical(string $message, array $context = [])|criticalレベルのログ| |
- | |void error(string $message, array $context = [])|errorレベルのログ| | + | |error(string $message, array $context = [])|errorレベルのログ| |
- | |void warning(string $message, array $context = [])|warningレベルのログ| | + | |warning(string $message, array $context = [])|warningレベルのログ| |
- | |void notice(string $message, array $context = [])|noticeレベルのログ| | + | |notice(string $message, array $context = [])|noticeレベルのログ| |
- | |void info(string $message, array $context = [])|infoレベルのログ| | + | |info(string $message, array $context = [])|infoレベルのログ| |
- | |void debug(string $message, array $context = [])|debugレベルのログ| | + | |debug(string $message, array $context = [])|debugレベルのログ| |
- | |void log($level, string $message, array $context = [])|任意レベルのログ| | + | |log($level, |
使用例: | 使用例: | ||
行 76: | 行 76: | ||
===== デバッグ出力 ===== | ===== デバッグ出力 ===== | ||
- | ロギングは、[[https:// | + | Apricotではオンサイトでのデバッグ出力機能を実現するために、[[https:// |
- | 使用法: **Log:: | + | ==== DebugBarクラス ==== |
+ | '' | ||
+ | |||
+ | 使用法: **DebugBar:: | ||
+ | |||
+ | ^メソッド^機能^ | ||
+ | |renderHead(): | ||
+ | |render(): | ||
+ | |getCollector(string $name=" | ||
+ | |||
+ | こららのメソッドの内、'' | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ==== Debugクラス ==== | ||
+ | '' | ||
+ | |||
+ | 使用法: ** Debug:: | ||
+ | |||
+ | ^メソッド^機能^ | ||
+ | |emergency($message, | ||
+ | |alert($message, | ||
+ | |critical($message, | ||
+ | |error($message, | ||
+ | |warning($message, | ||
+ | |notice($message, | ||
+ | |info($message, | ||
+ | |debug($message, | ||
+ | |log($level, | ||
+ | |||
+ | 使用例: | ||
+ | |||
+ | <code php> | ||
+ | use Apricot\Debug; | ||
+ | Debug:: | ||
+ | </ | ||
\\ | \\ | ||
行 106: | 行 141: | ||
</ | </ | ||
- | * debug --- デバッグモード(既定値は 環境変数APP_DEBUGの値) | + | '' |
- | * renderer.base_url --- DebugBarの公開用リソースのURL | + | |
- | * renderer.base_path --- DebugBarの公開用リソースのサーバ内ディレクトリ | + | '' |
- | * renderer.initialize --- 初期化コードをレンダリングするか否か(既定値はtrue) | + | |
- | * renderer.stacked_data --- スタックデータをレンダリングするか否か(既定値はtrue) | + | * '' |
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ==== アセットファイル ==== | ||
+ | |||
+ | 設定値の '' | ||
+ | |||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | '' | ||
+ | |||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | (TODO)のアセットファイルは、以下のディレクトリーに保存されているので、これをコピーして使用して下さい。 | ||
+ | |||
+ | < | ||
+ | / | ||
+ | </ | ||
\\ | \\ |