-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathLog.php
More file actions
48 lines (43 loc) · 1.39 KB
/
Copy pathLog.php
File metadata and controls
48 lines (43 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
namespace Bow\Support;
/**
* @method static void error(string $message, array $context = [])
* @method static void info(string $message, array $context = [])
* @method static void warning(string $message, array $context = [])
* @method static void alert(string $message, array $context = [])
* @method static void critical(string $message, array $context = [])
* @method static void emergency(string $message, array $context = [])
* @method void error(string $message, array $context = [])
* @method void info(string $message, array $context = [])
* @method void warning(string $message, array $context = [])
* @method void alert(string $message, array $context = [])
* @method void critical(string $message, array $context = [])
* @method void emergency(string $message, array $context = [])
*/
class Log
{
/**
* Log
*
* @param string $name
* @param array $arguments
* @return void
*/
public function __call(string $name, array $arguments = [])
{
$instance = app("logger");
call_user_func_array([$instance, $name], $arguments);
}
/**
* Log
*
* @param string $name
* @param array $arguments
* @return void
*/
public static function __callStatic(string $name, array $arguments = [])
{
$instance = app("logger");
call_user_func_array([$instance, $name], $arguments);
}
}