ãCakePHP3ãShellã®ä¸ã§ãããã°ãã°ãåºåããï¼
CakePHP3ã®ã·ã§ã«ã®å¦çã®ä¸ã§ããããã°ãã°ãæ¸ãåºãæ¹æ³ã§ãã
æ®éã«ä»¥ä¸ã®ããã«ã$This->log()ãã使ã£ã¦åºåã§ãã¾ãã
class TestShell extends Shell { public function testes(){ $this->log("test dayo", "debug"); } }
ã·ã§ã«å®è¡ã³ãã³ãã/bin/cake test testesãã§ä¸è¨ã®ã·ã§ã«ãå®è¡ããã¨ãã/logs/cli-debug.logãã«ãã°ãåºåããã¾ãã
以ä¸ã§ãã