Delete lines in log where it was fired

I have created custom logging format, and currently have something like the following:




2017-06-09 09:38:28 [http://test.com/admin/users][127.0.0.1][info][backend] 


STARTED


Loaded users/index by admin

---> Execution time: 0.22016286849976 


FINISHED




    in /var/www/demo.com/backend/controllers/AdminController.php:109



How can I get rid of this line "in /var/www/demo.com/backend/controllers/AdminController.php:109"?

What I did, is extended web controller with my own and use loggin on beforeAction() and afterAction() to track what is happening.

Currently I have the following component configuration:




'log' => [

    'traceLevel' => 0,

    'targets' => [

        [

            'class' => 'yii\log\FileTarget',

            'categories' => ['backend'],

            'logVars' => [], 

            'logFile' => '@app/runtime/backend.log',

            'levels' => ['info'],

            'prefix' => function ($message) {

                return "[" . Yii::$app->request->absoluteUrl . "][". Yii::$app->getRequest()->getUserIP() . "]";

            }

        ],

    ],

],



Up, anyone?

Is traceLevel really zero in backend config?

Alright, thanks to tri, I actually had traceLevel 3 on the backend config, which was overriting the common config file. Solved.