1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Tableクラス内でdebugをする場合

Posted at

Tableクラスでdebugがしたい

はじめに

普段controllerでdebug出力を
その他のところでもdebug出力をするときのメモ

ログを出力できるように追記

ファイルの先頭に下記を記載
記載することでLogクラスが使えるようになります。

<?php
use Cake\Log\Log;

これでソース中のどこでもdebugできる!!!

Log::debug($entity);

参考資料

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?