Loggin based on url pattern

Hello,

Is it possiblte to use Yii2 loggin for matching specific url patterns?

Let’s say not only using categories, or name of the class, controller, etc.

But let’s say, when user went to /admin url, all actions (GET, POST, etc) should be logged into specific file.

Let’s say, it can look something like this:




'log' => [

    'targets' => [

        [

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

            'urlMatch' => ['/admin/*'],

            'logVars' => [],

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

        ],

    ],

],



Is there such thing already?

I don’t think it’s possible now.