Blame view

console/config/main.php 1.27 KB
a63b5418   Administrator   first_commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  <?php
  $params = array_merge(
      require(__DIR__ . '/../../common/config/params.php'),
      require(__DIR__ . '/../../common/config/params-local.php'),
      require(__DIR__ . '/params.php'),
      require(__DIR__ . '/params-local.php')
  );
  
  return [
      'id' => 'app-console',
      'basePath' => dirname(__DIR__),
      'bootstrap' => ['log'],
      'controllerNamespace' => 'console\controllers',
      'components' => [
          'log' => [
              'targets' => [
                  [
                      'class' => 'yii\log\FileTarget',
                      'levels' => ['error', 'warning'],
                  ],
6f678cad   Mihail   refactored SaveMa...
21
22
23
24
                  [
                      'class' => 'yii\log\FileTarget',
                      'logFile' => __DIR__ . '/../runtime/logs/parser.log',
                      'levels' => ['info', 'error'],
1fd14fc9   Mihail   fixed errors with...
25
                      'categories' => ['parser'],
6f678cad   Mihail   refactored SaveMa...
26
27
28
29
30
                      'logVars' => [],
                  ],
                  [
                      'class' => 'yii\log\FileTarget',
                      'logFile' => __DIR__ . '/../runtime/logs/mail.log',
1fd14fc9   Mihail   fixed errors with...
31
                      'levels' => ['info', 'error', 'warning'],
6f678cad   Mihail   refactored SaveMa...
32
33
34
35
                      'categories' => ['yii\base\ErrorException:*', 'mail'],
                      'logVars' => [],
                  ],
              ],
a63b5418   Administrator   first_commit
36
37
          ],
      ],
a63b5418   Administrator   first_commit
38
      'params' => $params,
a63b5418   Administrator   first_commit
39
  ];
ef41533d   Mihail   temp commit - wor...