1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* Facades for Yii 2 |
4
|
|
|
* |
5
|
|
|
* Generated on Yii 2.0.12 |
6
|
|
|
* |
7
|
|
|
* @see https://github.com/sergeymakinen/yii2-facades |
8
|
|
|
* @copyright Copyright (c) 2016-2017 Sergey Makinen (https://makinen.ru) |
9
|
|
|
* @license https://github.com/sergeymakinen/yii2-facades/blob/master/LICENSE The MIT License |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
namespace sergeymakinen\facades; |
13
|
|
|
|
14
|
|
|
/** @noinspection PhpUnnecessaryFullyQualifiedNameInspection */ |
15
|
|
|
/** |
16
|
|
|
* Yii::$app->get('log') facade. |
17
|
|
|
* |
18
|
|
|
* Methods |
19
|
|
|
* |
20
|
|
|
* @method static \yii\base\Behavior attachBehavior(string $name, string|array|\yii\base\Behavior $behavior) Attaches a behavior to this component. |
21
|
|
|
* @see \yii\base\Component::attachBehavior |
22
|
|
|
* |
23
|
|
|
* @method static void attachBehaviors(array $behaviors) Attaches a list of behaviors to the component. |
24
|
|
|
* @see \yii\base\Component::attachBehaviors |
25
|
|
|
* |
26
|
|
|
* @method static array behaviors() Returns a list of behaviors that this component should behave as. |
27
|
|
|
* @see \yii\base\Component::behaviors |
28
|
|
|
* |
29
|
|
|
* @method static null|\yii\base\Behavior detachBehavior(string $name) Detaches a behavior from the component. |
30
|
|
|
* @see \yii\base\Component::detachBehavior |
31
|
|
|
* |
32
|
|
|
* @method static void detachBehaviors() Detaches all behaviors from the component. |
33
|
|
|
* @see \yii\base\Component::detachBehaviors |
34
|
|
|
* |
35
|
|
|
* @method static void dispatch(array $messages, bool $final) Dispatches the logged messages to [[targets]]. |
36
|
|
|
* @see \yii\log\Dispatcher::dispatch |
37
|
|
|
* |
38
|
|
|
* @method static void ensureBehaviors() Makes sure that the behaviors declared in [[behaviors()]] are attached to this component. |
39
|
|
|
* @see \yii\base\Component::ensureBehaviors |
40
|
|
|
* |
41
|
|
|
* @method static null|\yii\base\Behavior getBehavior(string $name) Returns the named behavior object. |
42
|
|
|
* @see \yii\base\Component::getBehavior |
43
|
|
|
* |
44
|
|
|
* @method static \yii\base\Behavior[] getBehaviors() Returns all behaviors attached to this component. |
45
|
|
|
* @see \yii\base\Component::getBehaviors |
46
|
|
|
* |
47
|
|
|
* @method static int getFlushInterval() |
48
|
|
|
* @see \yii\log\Dispatcher::getFlushInterval |
49
|
|
|
* |
50
|
|
|
* @method static \yii\log\Logger getLogger() Gets the connected logger. |
51
|
|
|
* @see \yii\log\Dispatcher::getLogger |
52
|
|
|
* |
53
|
|
|
* @method static int getTraceLevel() |
54
|
|
|
* @see \yii\log\Dispatcher::getTraceLevel |
55
|
|
|
* |
56
|
|
|
* @method static bool hasEventHandlers(string $name) Returns a value indicating whether there is any handler attached to the named event. |
57
|
|
|
* @see \yii\base\Component::hasEventHandlers |
58
|
|
|
* |
59
|
|
|
* @method static bool off(string $name, callable $handler = null) Detaches an existing event handler from this component. |
60
|
|
|
* @see \yii\base\Component::off |
61
|
|
|
* |
62
|
|
|
* @method static void on(string $name, callable $handler, mixed $data = null, bool $append = true) Attaches an event handler to an event. |
63
|
|
|
* @see \yii\base\Component::on |
64
|
|
|
* |
65
|
|
|
* @method static void setFlushInterval(int $value) |
66
|
|
|
* @see \yii\log\Dispatcher::setFlushInterval |
67
|
|
|
* |
68
|
|
|
* @method static void setLogger(\yii\log\Logger|string|array $value) Sets the connected logger. |
69
|
|
|
* @see \yii\log\Dispatcher::setLogger |
70
|
|
|
* |
71
|
|
|
* @method static void setTraceLevel(int $value) |
72
|
|
|
* @see \yii\log\Dispatcher::setTraceLevel |
73
|
|
|
* |
74
|
|
|
* @method static void trigger(string $name, \yii\base\Event $event = null) Triggers an event. |
75
|
|
|
* @see \yii\base\Component::trigger |
76
|
|
|
* |
77
|
|
|
* Property accessors |
78
|
|
|
* |
79
|
|
|
* @method static array|\yii\log\Target[] getTargets() Returns the log targets. |
80
|
|
|
* @see \yii\log\Dispatcher::targets |
81
|
|
|
* |
82
|
|
|
* @method static void setTargets(array|\yii\log\Target[] $value) Sets the log targets. |
83
|
|
|
* @see \yii\log\Dispatcher::targets |
84
|
|
|
*/ |
85
|
|
|
class Log extends Facade |
86
|
|
|
{ |
87
|
|
|
/** |
88
|
|
|
* @inheritDoc |
89
|
|
|
*/ |
90
|
1 |
|
public static function getFacadeComponentId() |
91
|
|
|
{ |
92
|
1 |
|
return 'log'; |
93
|
|
|
} |
94
|
|
|
} |
95
|
|
|
|