PHP code example of skeeks / cms-log-db-target

1. Go to this page and download the library: Download skeeks/cms-log-db-target library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

skeeks / cms-log-db-target example snippets



'components' =>
[
    'i18n' => [
        'translations' =>
        [
            'skeeks/logdb/app' => [
                'class'             => 'yii\i18n\PhpMessageSource',
                'basePath'          => '@skeeks/cms/logDbTarget/messages',
                'fileMap' => [
                    'skeeks/logdb/app' => 'app.php',
                ],
            ]
        ]
    ],

    'logDbTargetSettings' => [
        'class'     => 'skeeks\cms\logDbTarget\components\LogDbTargetSettings',
    ],

    'log' => [
        'targets' => [
            [
                'class'     => 'skeeks\cms\logDbTarget\LogDbTarget',
            ],
        ],
    ]
],

'modules' =>
[
    'logDbTarget' => [
        'class'         => '\skeeks\cms\logDbTarget\Module',
    ]
]