produce log on API

Set log on API file.

<?php


class aaa extends bbb_api
{
    public function index($params = [])
    {
        // set log message
        log_message("INFO", "###################### testtest ########################");
        ...
    }
}


Then this API process is executed.. point of process become clear.

256:2015-09-04 17:06:53,807 127.0.0.1 [3827] INFO : [API:aaa/index] request is {"ccc":100,"ddd":0,"eee":"2015\/09\/01 01:03:00"}
258:2015-09-04 17:06:53,871 127.0.0.1 [3827] INFO : ###################### testtest ########################
297:2015-09-04 17:06:54,050 127.0.0.1 [3827] INFO : [API:aaa/index] response is {"fff":true,"ggg":{"hhh":11,"iii":1,"...